Description
The LINEAR_BGRA8888
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 8 bits per channel for blue, green, red, and alpha channels, in that order (BGRA).
Usage
Use ImageFormat.LINEAR_BGRA8888
when you need to specify or check for an image format that uses a linear color space with BGRA channel ordering. This format is often used in graphics programming where linear color space is required for accurate color representation and manipulation.
Example
// Example of using ImageFormat.LINEAR_BGRA8888
// Assume we have a method that requires an image format
void ProcessImage(ImageFormat format)
{
if (format == ImageFormat.LINEAR_BGRA8888)
{
// Handle the image processing for LINEAR_BGRA8888 format
}
}
// Call the method with LINEAR_BGRA8888 format
ProcessImage(ImageFormat.LINEAR_BGRA8888);