| GraphicsFormats Xojo plugin |
|
TgaExporter Class (console safe)
A class to Export Pictures to a TGA (Targa) format. The result can be written to a File, string or IBinaryStreamWriter.
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. |
IgnoreMask (console safe) | Set to true if Picture masks should not be exported. |
LastError (console safe) | Code for last error that occurred |
ProgressHandler (console safe) | To get progress feedback then assign a a class instance that implements the IProgressHandler interface to this property. |
RLECompressed (console safe) | Set to true if you want RLE compression done when exporting. |
Methods
SaveToFile (console safe) | Exports a picture to a Tga file. |
SaveToStream (console safe) | Exports a picture formatted as Tga to a IBinaryStreamWriter. |
SaveToString (console safe) | Exports a picture formatted as Tga to a String. |
Examples
Examples:
The following example saves a picture as a 24bit RLE compressed Tga file.
Dim tga as TGAExporter
tga = new TGAExporter()
tga.RLECompressed = true
tga.IgnoreMask = true
tga.SaveToFile(myPicture,f)
Supported Platforms:
MacOS X CarbonMacOS X Cocoa 32 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARM