Description
The BGR888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. It represents an image format where each pixel is stored using 24 bits, with 8 bits for each of the blue, green, and red color channels, in that order. This format does not include an alpha channel, meaning it does not support transparency.
Usage
Use the BGR888
format when you need to work with images that require 24-bit color depth without transparency. This format is suitable for scenarios where the order of color channels is blue, green, and red, which might be necessary for certain graphics APIs or image processing tasks.
Example
// Example of using ImageFormat.BGR888
ImageFormat format = ImageFormat.BGR888;
// Check if the format is BGR888
if (format == ImageFormat.BGR888)
{
// Perform operations specific to BGR888 format
// For example, loading or processing an image in BGR888 format
}