Description
The BGR565
field is a member of the ImageFormat
enumeration in the Sandbox namespace. It represents an image format where each pixel is stored using 16 bits, with 5 bits for the blue channel, 6 bits for the green channel, and 5 bits for the red channel. This format is commonly used for its balance between color depth and memory usage, making it suitable for applications where moderate color fidelity is acceptable.
Usage
Use the BGR565
format when you need to store images with a reduced color depth to save memory, while still maintaining a reasonable level of color accuracy. This format is particularly useful in scenarios where performance and memory efficiency are prioritized over high color precision.
Example
// Example of using ImageFormat.BGR565
Image image = new Image();
image.Format = ImageFormat.BGR565;
// Load or manipulate the image as needed
// This format will use 16 bits per pixel, with 5 bits for blue, 6 bits for green, and 5 bits for red.