Description
The LINEAR_RGB888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. It represents an image format where the color data is stored in a linear RGB format with 8 bits per channel, totaling 24 bits per pixel. This format does not include an alpha channel and is typically used for images where transparency is not required.
Usage
Use ImageFormat.LINEAR_RGB888
when you need to specify an image format that uses linear RGB color space with 8 bits per channel. This is suitable for images that do not require an alpha channel and where linear color space is preferred for accurate color representation.
Example
// Example of using LINEAR_RGB888 in a texture loading function
Texture texture = new Texture("path/to/image.png", ImageFormat.LINEAR_RGB888);
// This specifies that the image should be loaded using the LINEAR_RGB888 format,
// which is suitable for images without transparency and requiring linear color space.