book_4_sparkGenerated
code_blocksInput

Description

The RG1616 field is a member of the ImageFormat enumeration in the Sandbox namespace. This enumeration is used to specify different image formats that can be used within the s&box game engine. The RG1616 format represents an image format with two color channels, red and green, each with 16 bits of precision.

Usage

Use the ImageFormat.RG1616 enumeration value when you need to specify an image format that requires high precision for red and green channels, typically for textures or images where these channels are critical, such as in certain types of data visualization or scientific applications.

Example

// Example of using ImageFormat.RG1616
Texture texture = new Texture();
texture.Format = ImageFormat.RG1616;

// Load or create a texture with the RG1616 format
texture.LoadFromFile("path/to/texture.file");