GraphicsFormats Xojo Plugin for Console targets

TgaExporterConsole 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.

Object
   TgaExporterConsole

class TgaExporterConsole implements

IGraphicsExporter

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 Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM