Description
The LINEAR_BGRA8888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This format represents an image with a linear color space and a pixel format of 8 bits per channel for blue, green, red, and alpha channels, in that order. It is commonly used for images that require high color fidelity and transparency support.
Usage
Use ImageFormat.LINEAR_BGRA8888
when you need to specify an image format that supports linear color space with 8 bits per channel for blue, green, red, and alpha. 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_BGRA8888 in a texture loading function
Texture texture = new Texture("path/to/image.png", ImageFormat.LINEAR_BGRA8888);
// This specifies that the texture should be loaded with the LINEAR_BGRA8888 format
// ensuring that the color data is interpreted in a linear color space with BGRA channel order.