Description
The LINEAR_BGRA8888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This field represents an image format where the color channels are stored in a linear color space with a BGRA (Blue, Green, Red, Alpha) channel order, each channel being 8 bits in size. This format is commonly used for images that require precise color representation and manipulation in a linear color space, which is often preferred for rendering and image processing tasks.
Usage
Use the LINEAR_BGRA8888
format when you need to work with images in a linear color space and require the BGRA channel order. This format is suitable for scenarios where accurate color calculations are necessary, such as in graphics rendering pipelines or image processing applications.
Example
// Example of using LINEAR_BGRA8888 in a texture creation
Texture texture = new Texture( width: 256, height: 256, format: ImageFormat.LINEAR_BGRA8888 );
// Set the texture data
byte[] imageData = new byte[256 * 256 * 4]; // Assuming 4 bytes per pixel
texture.SetData(imageData);