ImageFormat LE_BGRX8888

book_4_sparkGenerated
code_blocksInput

Description

The LE_BGRX8888 field is a member of the ImageFormat enumeration in the Sandbox API. This field represents an image format where the pixel data is stored in little-endian order with the color channels arranged as Blue, Green, Red, and an unused channel (X) with 8 bits per channel. This format is commonly used for images where alpha transparency is not required, and the extra channel is ignored.

Usage

Use the LE_BGRX8888 format when you need to work with images that do not require an alpha channel and are stored in a little-endian byte order. This format is suitable for applications where the image data is primarily used for display purposes without transparency.

Example

// Example of using the LE_BGRX8888 image format

// Assume we have a method to load an image with a specific format
Image image = Image.Load("path/to/image", ImageFormat.LE_BGRX8888);

// Use the image in your application
// For example, setting it as a texture on a game object
GameObject myObject = new GameObject();
myObject.SetTexture(image);