Table of Contents

Interface IAtlasEncoder

Namespace
KernSmith.Atlas
Assembly
KernSmith.dll

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

string

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

pixelData byte[]

Raw pixel buffer.

width int

Image width in pixels.

height int

Image height in pixels.

format PixelFormat

Pixel format of the input data.

Returns

byte[]

The encoded image file bytes.