Description
The RGBA8888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. It represents an image format where each pixel is stored using 32 bits, with 8 bits for each of the red, green, blue, and alpha channels. This format is commonly used for images that require full color and transparency support.
Usage
Use ImageFormat.RGBA8888
when you need to specify an image format that supports full color and alpha transparency. This format is suitable for high-quality images where color fidelity and transparency are important.
Example
// Example of using ImageFormat.RGBA8888
// Assuming you have a method that requires an image format
void LoadImage(string filePath, ImageFormat format)
{
// Implementation to load an image with the specified format
}
// Load an image using the RGBA8888 format
LoadImage("path/to/image.png", ImageFormat.RGBA8888);