ImageFormat RG1616F_EXPAND

book_4_sparkGenerated
code_blocksInput

Description

The RG1616F_EXPAND field is a member of the ImageFormat enumeration in the Sandbox API. This field represents a specific image format used for storing image data. The format is characterized by its use of two 16-bit floating-point components, typically representing red and green channels, with an expanded range for higher precision.

Usage

Use the RG1616F_EXPAND format when you need to store image data with high precision for the red and green channels, and when the expanded range of floating-point values is required. This format is particularly useful in scenarios where color accuracy and detail are critical, such as in graphics rendering or image processing tasks.

Example

// Example of using RG1616F_EXPAND in a texture creation
Texture texture = new Texture();
texture.Format = ImageFormat.RG1616F_EXPAND;
texture.LoadFromFile("path/to/image.file");