Creates a TGA object without a footer.
Creates a TGA object with a footer.
Creates an embedded field within the TGA file.
Adds extension area for the file.
Returns the developer area info for the field.
Returns the embedded field.
Returns the header as a reference type.
Returns the image type.
Returns the pixel order for bitdepths less than 8. Almost excusively used for indexed bitmaps. Returns null if ordering not needed.
Returns which pixel how much needs to be shifted right after a byteread.
Saves the current TGA object into a Truevision TARGA file. If ignoreScanlineBounds is true, then the compression methods will ignore the scanline bounds, this disables per-line accessing, but enhances compression rates by a margin in exchange. If false, then it'll generate a scanline table.
Loads a Truevision TARGA file and creates a TGA object. FILE can be either std.stdio's file, my own implementation of a virtual file (see ziltoid1991/vfile), or any compatible solution.
color correction table
byte 0 is width, byte 1 is height
stores offset to scanlines
Implements the Truevision Graphics bitmap file format (*.tga) with some extra capabilities at the cost of making them unusable in applications not implementing these features: <ul> <li>Capability of storing 1, 2, and 4 bit indexed images.</li> <li>External color map support.</li> <li>More coming soon such as more advanced compression methods.</li> </ul> Accessing developer area is fully implemented, accessing extension area is partly implemented.