book_4_sparkGenerated
code_blocksInput

Description

The BC7 field is a member of the ImageFormat enumeration in the Sandbox API. It represents the BC7 texture compression format, which is a block-based compression format used for high-quality texture compression. BC7 is particularly effective for compressing images with complex color gradients and is widely used in modern graphics applications due to its balance between compression ratio and image quality.

Usage

Use the ImageFormat.BC7 field when you need to specify the BC7 compression format for textures in your application. This format is suitable for scenarios where high-quality texture representation is required, such as in detailed 3D models or environments.

Example

// Example of using ImageFormat.BC7
Texture texture = new Texture("path/to/texture.png");
texture.Format = ImageFormat.BC7;

// Load the texture with BC7 compression
texture.Load();