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 ImageFormat.RGB888
// Assume 'texture' is an instance of a class that supports setting image formats
texture.SetImageFormat(ImageFormat.RGB888);
// This sets the texture to use the RGB888 format, which is suitable for non-transparent images.