...

Static methods

staticextract32(data:Data, extractAlpha:Bool):Bytes

Extracts BGRA pixel data from TGA file.
If extractAlpha is true, alpha channel will be applied to image, mostly resulting in completely transparent image.
Otherwise alpha will be forced to 0xFF.
If image does not contain image data, 0-filled array returned.

staticextractAlpha(data:Data):Bytes

Extracts alpha channel from TGA file.
If image does not contain image data, 0-filled array returned.

staticextractGrey(data:Data):Bytes

Extracts grey channel from TGA file.
If image does not contains image data 0-filled array returned.
If image is not black-and-white, error thrown.