ImageFormat BGRA4444

book_4_sparkGenerated
code_blocksInput

Description

The BGRA4444 field is a member of the ImageFormat enumeration in the Sandbox namespace. This format represents an image with 4 bits per channel for blue, green, red, and alpha, resulting in a 16-bit image format. It is used for images where a balance between color depth and memory usage is desired, providing a compact representation with limited color precision.

Usage

Use ImageFormat.BGRA4444 when you need to work with images that require a compact format with moderate color precision. This format is suitable for applications where memory usage is a concern, and the image quality requirements are not as high as those needing full 8-bit per channel precision.

Example

// Example of using ImageFormat.BGRA4444

// Assuming you have a method to load an image with a specific format
Image myImage = LoadImage("path/to/image", ImageFormat.BGRA4444);

// Process the image as needed
ProcessImage(myImage);