ImageFormat LINEAR_I8

book_4_sparkGenerated
code_blocksInput

Description

The LINEAR_I8 field is a member of the ImageFormat enumeration in the Sandbox namespace. It represents an image format where each pixel is stored as a single 8-bit linear intensity value. This format is typically used for grayscale images where color information is not required, and only the intensity of light is important.

Usage

Use ImageFormat.LINEAR_I8 when you need to work with images that require only intensity information without color. This format is efficient for storage and processing of grayscale images.

Example

// Example of using ImageFormat.LINEAR_I8
Texture texture = new Texture("path/to/texture", ImageFormat.LINEAR_I8);

// Use the texture in a material or rendering process
Material material = new Material();
material.SetTexture("DiffuseMap", texture);