Description
The RGBA8888_LINEAR
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This field represents an image format where each pixel is stored with 8 bits per channel for red, green, blue, and alpha, resulting in a total of 32 bits per pixel. The "linear" designation indicates that the color values are stored in a linear color space, which is often used for high dynamic range (HDR) rendering and processing.
Usage
Use ImageFormat.RGBA8888_LINEAR
when you need to work with images that require linear color space processing. This format is suitable for scenarios where accurate color representation and manipulation are critical, such as in graphics rendering pipelines that involve lighting calculations or post-processing effects.
Example
// Example of using RGBA8888_LINEAR in a texture creation
Texture texture = new Texture();
texture.Format = ImageFormat.RGBA8888_LINEAR;
texture.LoadFromFile("path/to/image.png");