Description
The BGRX5551
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This format represents a 16-bit color format where each pixel is composed of 5 bits for blue, 5 bits for green, 5 bits for red, and 1 unused bit (often referred to as the "X" bit). This format does not support an alpha channel, making it suitable for images where transparency is not required.
Usage
Use the BGRX5551
format when you need a compact representation of color data without an alpha channel. This format is particularly useful in scenarios where memory usage is a concern, and the image does not require transparency.
Example
// Example of using ImageFormat.BGRX5551
// Assuming you have a method to load an image with a specific format
Image myImage = LoadImage("path/to/image", ImageFormat.BGRX5551);
// Use the image in your application
DisplayImage(myImage);