GraphicsFormats Xojo plugin

RawICOImporter Class (console safe)

A class to import picture in ICO format to RawBitmap. The class can either import from file or string.

Object
   RawICOImporter

class RawICOImporter implements

IRawBitmapReader

Properties

CurrentDirectoryIndex (console safe) Returns index of last read bitmap from the ICO file.
Gamma (console safe) Gamma value that was read from the image. (If the image read from the ICO file was PNG based)
LastDirectoryIndex (console safe) Returns index of last bitmap in the ICO file.
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. Gamma’s only apply if the bitmap read from the ICO file was PNG based.

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 ICO Image from a file, reading the first bitmap in the ICO file.
OpenFromFile (console safe) Opens a ICO Image from a file, reading the bitmap by given index from the ICO file.
OpenFromString (console safe) Opens a ICO Image from a ICO formatted string, reading the first bitmap in the ICO file.
OpenFromString (console safe) Opens a ICO Image from a ICO formatted string, reading the bitmap by given index from the ICO file.

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