Interface IAtlasEncoder
Encodes atlas pixel data to an image format such as PNG, TGA, or DDS.
public interface IAtlasEncoder
Properties
FileExtension
File extension including the leading dot (e.g., ".png", ".tga", ".dds").
string FileExtension { get; }
Property Value
Methods
Encode(byte[], int, int, PixelFormat)
Encodes raw pixel data into an image file format (PNG, TGA, or DDS).
byte[] Encode(byte[] pixelData, int width, int height, PixelFormat format)
Parameters
pixelDatabyte[]Raw pixel buffer.
widthintImage width in pixels.
heightintImage height in pixels.
formatPixelFormatPixel format of the input data.
Returns
- byte[]
The encoded image file bytes.