Description
The LINEAR_BGRX8888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This field represents an image format where the pixel data is stored in a linear color space with a BGRX layout. Each pixel is represented by 32 bits, with 8 bits for each of the blue, green, and red channels, and 8 bits reserved (X) for padding or other purposes.
Usage
Use the LINEAR_BGRX8888
format when you need to work with images that require a linear color space and a BGRX channel layout. This format is particularly useful in graphics programming where linear color space is preferred for certain rendering operations.
Example
// Example of using LINEAR_BGRX8888 in a texture creation
Texture texture = new Texture();
texture.Format = ImageFormat.LINEAR_BGRX8888;
texture.LoadFromFile("path/to/image.file");