Description
The LINEAR_ARGB8888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This field represents an image format where the color components are stored in a linear color space with 8 bits per channel for alpha, red, green, and blue channels, in that order. This format is useful for high-quality image processing where linear color space is required to maintain color accuracy and consistency.
Usage
Use ImageFormat.LINEAR_ARGB8888
when you need to work with images that require linear color space processing. This format is particularly suitable for rendering operations where gamma correction is applied, or when performing operations that require precise color blending and manipulation.
Example
// Example of using LINEAR_ARGB8888 in a texture loading function
Texture texture = Texture.Load("path/to/texture.png", ImageFormat.LINEAR_ARGB8888);
// Use the texture in a material
Material material = new Material();
material.SetTexture("Albedo", texture);