GraphicsFormats Xojo plugin

RawTgaImporter Class (console safe)

A class to Import RawBitmap 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
   RawTgaImporter

class RawTgaImporter implements

IRawBitmapReader

Properties

LastError (console safe) Returns error code for last method called.
ProgressHandler (console safe) To get progress feedback then assign a a class instance that implements the IProgressHandlerV2 interface to this property.
RLECompressed (console safe) Returns a string containing a TIFF encoded image or empty string if there was error.

Methods

GetLastErrorCode (console safe) Same as the LastError property but this one returns it as Integer to full-fill the standard interface.
OpenFromFile (console safe) Opens a Tga Image from a file.
OpenFromStream (console safe) Opens a Tga Image from a stream that implements the IBinaryStreamReader interface.
OpenFromString (console safe) Opens a Tga Image from a String that contains the Tga file.

Enumerations

ErrorValuesEnum that defines error codes for the RawTgaImporter class.

Constants

Version = 12.0

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS