GraphicsFormats Xojo plugin

RawTgaExporter Class (console safe)

A class to Export RawBitmap 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
   RawTgaExporter

class RawTgaExporter implements

IRawBitmapWriter

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) Set to true if you want RLE compression done when exporting.

Methods

GetLastErrorCode (console safe) Same as the LastError property but this one returns it as Integer to full-fill the standard interface.
SaveToFile (console safe) Exports a RawBitmap picture to a Tga file.
SaveToStream (console safe) Exports a RawBitmap picture to a stream that implements the IBinaryStreamWriter interface.
SaveToString (console safe) Exports a RawBitmap picture to a string.

Enumerations

ErrorValuesEnum that defines error codes for the RawTgaExporter 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