|
eLynx SDK
v3.3.0 C++ image processing API reference |
The Targa (TGA) format is designed for systems using the Truevision video board and is commonly supported by MS-DOS color applications. Targa format supports 16-bit RGB images (5 bits x 3 color channels, plus one unused bit), 24-bit RGB images (8 bits x 3 color channels), and 32-bit RGB images (8 bits x 3 color channels plus a single 8-bit alpha channel). Targa format also supports indexed-color and grayscale images without alpha channels. When saving an RGB image in this format, you can choose a pixel depth and select RLE encoding to compress the image.
| Specification | Truevision TGA — Version 2.0, from Paul Bourke |
|---|---|
| Library | None |
| Copyright | Internal |
| Samples | here |
| File | Features | Pixel format |
|---|---|---|
| gray8.tga | gray 8-bit | LAub |
| gray8-rle.tga | gray 8-bit with RLE compression | LAub |
| rgb8.tga | RGB indexed | RGBub |
| rgb8-rle.tga | RGB indexed with RLE compression | RGBub |
| rgb16.tga | 16-bit (1x5x5x5) RGB | RGBub |
| rgb16.tga | 16-bit (1x5x5x5) RGB with RLE compression | RGBub |
| rgb24.tga | 24-bit RGB (8x8x8) | RGBub |
| rgb24-rle.tga | 24-bit RGB (8x8x8) with RLE compression | RGBub |
| rgba32.tga | 32-bit RGBA (8x8x8x8) | RGBAub |