Description
The RGBX555
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This format represents an image with a 16-bit color depth, where each pixel is composed of 5 bits for red, 5 bits for green, 5 bits for blue, and an unused bit (X). This format does not support an alpha channel, making it suitable for images where transparency is not required.
Usage
Use the RGBX555
format when you need to store images with a moderate color depth and do not require an alpha channel for transparency. This format is efficient in terms of memory usage compared to 32-bit formats, making it suitable for applications where memory constraints are a concern.
Example
// Example of using RGBX555 format
ImageFormat format = ImageFormat.RGBX555;
// Check if the format is RGBX555
if (format == ImageFormat.RGBX555)
{
// Perform operations specific to RGBX555 format
// For example, loading or processing an image
}