Description
The LINEAR_BGRX5551
field is a member of the ImageFormat
enumeration in the Sandbox API. This field represents an image format where the color data is stored in a linear color space with a BGRX (Blue, Green, Red, and unused) channel order. The format uses 16 bits per pixel, with 5 bits for each of the blue, green, and red channels, and 1 bit unused (often used for padding or alignment purposes).
Usage
Use the LINEAR_BGRX5551
format when you need to work with images that require a linear color space and a specific channel order of BGRX with 5 bits per channel. This format is useful in scenarios where memory efficiency is important, and the precision of 5 bits per channel is sufficient for the application's needs.
Example
// Example of using LINEAR_BGRX5551 in a texture creation
Texture texture = new Texture();
texture.Format = ImageFormat.LINEAR_BGRX5551;
texture.LoadFromFile("path/to/image.file");