ImageFormat

ImageFormat

Formats accepted when specifying texture images.

Index

Enumeration Members

Enumeration Members

ImageFormat.Gray8
Gray8: 2

Uncompressed grayscale, 1 byte per pixel

ImageFormat.GrayAlpha16
GrayAlpha16: 3

Uncompressed grayscale with alpha, 16 bits per pixel (1 byte per channel)

ImageFormat.Jpeg
Jpeg: 4

JPEG data

ImageFormat.Png
Png: 5

PNG data.

Note: Currently, applying PNGs inserted through the viewer API as textures will cause objects to which they are applied to be treated as transparent, which may cause undesirable behavior. This can be avoided by setting [[TextureModifier.Decal]] in [[TextureOptions]] when applying the texture. [[TextureModifier.Decal]] is not currently supported for PBR based materials.

ImageFormat.Rgb24
Rgb24: 1

Uncompressed, interleaved RGB, 24 bits per pixel (1 byte per channel)

ImageFormat.Rgba32
Rgba32: 0

Uncompressed, interleaved RGBA, 32 bits per pixel (1 byte per channel)