GraphicsFormats Xojo plugin

RawICOExporter Class (console safe)

A class to Export RawBitmap to a ICO format. The result can be written to a File or String.

Object
   RawICOExporter

class RawICOExporter implements

IRawBitmapWriter

Properties

Gamma (console safe) Gamma value that was read from the image.
LastError (console safe) Returns enum error code for last error that occurred.
ScreenGamma (console safe) Sets screen gamma to be used. You can use this property to forces 100% same result on all platforms.

Methods

AddBitmap (console safe) Use this method when wanting to add more than one bitmap or size into the ICO file, adding them one by one and then call SaveBitmapsToFile or SaveBitmapsToString.
GetLastErrorCode (console safe) Same as the LastError property but this one returns it as Integer to full-fill the standard interface.
SaveBitmapsToFile (console safe) Saves one or more bitmaps to a single ICO formatted file. The bitmaps must have been previously added with the AddBitmap method.
SaveBitmapsToString (console safe) Saves one or more bitmaps to a single ICO formatted string. The bitmaps must have been previously added with the AddBitmap method.
SaveToFile (console safe) Saves a single bitmap to a ICO file.
SaveToString (console safe) Saves a single bitmap to ICO formatted string.

Enumerations

ErrorValuesEnum representing error codes which this class can return.

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