Description
The ImageFormat.ARGB8888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This format represents an image with 32 bits per pixel, where each pixel is composed of four 8-bit channels: Alpha, Red, Green, and Blue, in that order. This format is commonly used for images that require transparency and full color depth.
Usage
Use ImageFormat.ARGB8888
when you need to work with images that require an alpha channel for transparency and need to maintain high color fidelity. This format is suitable for textures and images in games where transparency effects are needed.
Example
// Example of using ImageFormat.ARGB8888
Texture texture = new Texture("path/to/image.png", ImageFormat.ARGB8888);
// Use the texture in a material
Material material = new Material();
material.SetTexture("albedo", texture);