Table of Contents

Method SaveAsTga

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

SaveAsTga(string, bool)

Saves the image in TGA (Truevision TARGA) format to the specified file path.

public bool SaveAsTga(string filePath, bool rle = false)

Parameters

filePath string

The file path to save the image to.

rle bool

If true, uses RLE compression; otherwise writes uncompressed.

Returns

bool

True if the image was saved successfully; otherwise, false.

Exceptions

ObjectDisposedException

Thrown if this instance has been disposed.

Share