| GraphicsFormats Xojo plugin |
|
TgaImporter Class (console safe)
A class to Import Pictures from a TGA (Targa) format. The picture can be imported from a File, string or IBinaryStreamReader.
Tga format is loss less file format and supports alpha channels.
Properties
ErrorMessage (console safe) | For some errors then further detail may come in text, if there is more detail then this property will contain the extra detail as text. |
LastError (console safe) | Code for last error that occurred |
MaskInAlphaChannel | Set this value to true if wanting the alpha channel returned in new style Xojo alpha channel instead of a Mask. |
ProgressHandler (console safe) | To get progress feedback then assign a a class instance that implements the IProgressHandler interface to this property. |
RLECompressed (console safe) | Returns true if the image that was imported was RLE compressed, else false. |
Methods
Examples
Examples:
The following example imports a tga file.
Dim tga as TGAImporter
tga = new TGAImporter()
myPicture = tga.OpenFromFile(f)
Supported Platforms:
MacOS X CarbonMacOS X Cocoa 32 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARM