Description
The BGR565
field is a member of the ImageFormat
enumeration in the Sandbox namespace. It represents a specific image format where the color data is stored in a 16-bit format with 5 bits for blue, 6 bits for green, and 5 bits for red. This format is commonly used for its balance between color depth and memory usage, making it suitable for applications where memory efficiency is important.
Usage
Use the BGR565
format when you need to store images with moderate color fidelity and reduced memory footprint compared to 24-bit or 32-bit formats. This format is particularly useful in scenarios where performance and memory usage are critical, such as in mobile applications or embedded systems.
Example
// Example of using ImageFormat.BGR565
ImageFormat format = ImageFormat.BGR565;
// Check if the format is BGR565
if (format == ImageFormat.BGR565)
{
// Perform operations specific to BGR565 format
// For example, loading or processing an image in this format
}