robot_2Generated
code_blocksInput

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 full color representation without transparency. This format is commonly used for standard RGB images where each color channel is represented with 8 bits, providing a total of 16,777,216 possible colors.

Example

// Example of using RGB888 in a method
public void ProcessImage(Image image)
{
    if (image.Format == ImageFormat.RGB888)
    {
        // Process the image knowing it is in RGB888 format
        // For example, iterate over pixels and manipulate RGB values
    }
}