Description
The RGB888
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 allocated for each of the red, green, and blue color channels. This format does not include an alpha channel, making it suitable for images where transparency is not required.
Usage
Use the RGB888
format when you need to work with images that require true color representation without transparency. This format is commonly used for high-quality images where color fidelity is important, but alpha blending is not needed.
Example
// Example of using ImageFormat.RGB888
ImageFormat format = ImageFormat.RGB888;
// Check if the format is RGB888
if (format == ImageFormat.RGB888)
{
// Perform operations specific to RGB888 format
// For example, loading or processing an image
}