Read Convert And Write TGA

TGA Format Conversion Pipeline

Reads image in TARGA 24 format and saves to TARGA 16 format with RLE compression.

Сode Snippet

using (var reader = new TgaReader("WriteTga.tga"))
using (var writer = new TgaWriter("ReadConvertAndWriteTga.tga"))
{
    writer.Compression = CompressionType.Rle;
    writer.ReducedPrecision = true;

    Pipeline.Run(reader + writer);
}

Input

WriteTga.tga

Download

Output

ReadConvertAndWriteTga.tga

Download

For AI-assisted development: Download Graphics Mill Code Samples XML Catalog