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 useful for applications where memory usage is a concern and a lower color depth is acceptable.

Usage

Use ImageFormat.BGRA4444 when you need to work with images that require a compact representation with 4 bits per channel. This format is particularly useful in scenarios where memory efficiency is prioritized over color precision.

Example

// Example of using ImageFormat.BGRA4444
Image image = new Image();
image.Format = ImageFormat.BGRA4444;

// Load or manipulate the image as needed
// Note: Ensure that the source image supports this format to avoid data loss