Description
The LINEAR_BGRX8888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. It represents an image format where each pixel is stored in a linear color space with 8 bits per channel for blue, green, and red, and an unused 8-bit channel (X). This format is typically used for images that do not require an alpha channel and where linear color space is preferred for accurate color representation and processing.
Usage
Use ImageFormat.LINEAR_BGRX8888
when you need to specify an image format that uses a linear color space with blue, green, and red channels, and an unused channel. This format is suitable for scenarios where alpha transparency is not needed, and linear color space is required for color accuracy in rendering or processing tasks.
Example
// Example of using LINEAR_BGRX8888 in a texture loading function
Texture texture = Texture.Load("path/to/texture", ImageFormat.LINEAR_BGRX8888);
// Example of checking the image format
if (texture.Format == ImageFormat.LINEAR_BGRX8888)
{
// Perform operations specific to LINEAR_BGRX8888 format
}