Description
The R8G8B8_ETC2
field is a member of the ImageFormat
enumeration in the Sandbox namespace. It represents an image format that uses the ETC2 compression algorithm for RGB data. This format is commonly used in graphics applications to efficiently store and transmit image data with reduced file size while maintaining visual quality.
Usage
Use ImageFormat.R8G8B8_ETC2
when you need to specify an image format that utilizes ETC2 compression for RGB data. This is particularly useful in scenarios where memory efficiency is crucial, such as in mobile or web-based applications.
Example
// Example of using ImageFormat.R8G8B8_ETC2
// Assume we have a method that loads an image with a specified format
public void LoadImage(string filePath, ImageFormat format)
{
// Implementation for loading the image
}
// Load an image using the R8G8B8_ETC2 format
LoadImage("path/to/image", ImageFormat.R8G8B8_ETC2);