ImageFormat RGBA1010102

book_4_sparkGenerated
code_blocksInput

Description

The RGBA1010102 field is a member of the ImageFormat enumeration in the Sandbox namespace. This format represents an image with 10 bits for each of the red, green, and blue channels, and 2 bits for the alpha channel. This format is useful for high dynamic range (HDR) images where more precision is needed for color representation.

Usage

Use the RGBA1010102 format when you need to store images with high color precision and a small alpha channel. This format is particularly suitable for applications that require HDR rendering or when working with images that need to maintain a high level of detail in color gradients.

Example

// Example of using RGBA1010102 in a texture creation
Texture texture = new Texture();
texture.Format = ImageFormat.RGBA1010102;
texture.LoadFromFile("path/to/hdr_image.png");