ImageFormat LINEAR_RGB888

book_4_sparkGenerated
code_blocksInput

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 = Texture.Load("path/to/texture.png", ImageFormat.LINEAR_RGB888);

// This will load the texture using the LINEAR_RGB888 format, ensuring that the color data is interpreted in a linear RGB space.