Table of Contents

Method SaveAsTgaBytes

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

SaveAsTgaBytes(bool)

Saves the image as TGA to a byte array without writing to disk.

public byte[] SaveAsTgaBytes(bool rle = false)

Parameters

rle bool

If true, uses RLE compression; otherwise writes uncompressed.

Returns

byte[]

A byte array containing the TGA-encoded image data.

Exceptions

ObjectDisposedException

Thrown if this instance has been disposed.

InvalidOperationException

Thrown if encoding fails.

Share