variable TGA_IMAGE_TYPE

Well-known values used by the TGA header's imageType field.

Examples

Example 1

import { assertEquals } from "@std/assert";
import { TGA_IMAGE_TYPE } from "@binstruct/tga";

assertEquals(TGA_IMAGE_TYPE.trueColor, 2);
assertEquals(TGA_IMAGE_TYPE.rleTrueColor, 10);

Properties

noImage: number

No image data is present.

Uncompressed, color-mapped image.

trueColor: number

Uncompressed, true-color image.

grayscale: number

Uncompressed, black-and-white (grayscale) image.

Run-length encoded, color-mapped image.

Run-length encoded, true-color image.

Run-length encoded, black-and-white (grayscale) image.