ImageFormat LINEAR_ABGR8888

book_4_sparkGenerated
code_blocksInput

Description

The LINEAR_ABGR8888 field is a member of the ImageFormat enumeration in the Sandbox API. This field represents an image format where the color components are stored in a linear color space with the order of Alpha, Blue, Green, and Red, each occupying 8 bits. This format is useful for applications that require linear color processing, such as certain graphics rendering tasks where gamma correction is not applied.

Usage

Use ImageFormat.LINEAR_ABGR8888 when you need to specify an image format that requires linear color space processing with the ABGR channel order. This is particularly useful in graphics programming where precise color manipulation is necessary without gamma correction.

Example

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