GraphicsFormats Xojo Plugin for Console targets

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

Object
   TgaImporterConsole

class TgaImporterConsole implements

IGraphicsImporter

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 (console only) 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

OpenFromFile (console safe) Opens a Tga Image from a file.
OpenFromStream (console safe) Opens a Tga Image from a IBinaryStreamWriter.
OpenFromString (console safe) Opens a Tga Image from a String.

Examples

Examples:

The following example imports a tga file.

Dim tga as TGAImporter

tga = new TGAImporter()

myPicture = tga.OpenFromFile(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