Description
The LINEAR_RGBA8888
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 color space with 8 bits per channel for red, green, blue, and alpha components. This format is commonly used for images that require high color fidelity and transparency support.
Usage
Use ImageFormat.LINEAR_RGBA8888
when you need to specify an image format that supports linear color space with full 8-bit precision for each color channel and alpha transparency. This is particularly useful in graphics programming where accurate color representation is crucial, such as in rendering pipelines or texture processing.
Example
// Example of using LINEAR_RGBA8888 in a texture loading function
Texture texture = new Texture("path/to/image.png", ImageFormat.LINEAR_RGBA8888);
// This specifies that the texture should be loaded with linear RGBA format
// ensuring high color accuracy and support for transparency.