GraphicsFormats Xojo plugin

RawICOImporter Class

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

CurrentDirectoryIndexReturns index of last read bitmap from the ICO file.
GammaGamma value that was read from the image. (If the image read from the ICO file was PNG based)
LastDirectoryIndexReturns index of last bitmap in the ICO file.
LastErrorReturns enum error code for last error that occurred.
ScreenGammaSets 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

GetLastErrorCodeSame as the LastError property but this one returns it as Integer to full-fill the standard interface.
OpenFromFileOpens a ICO Image from a file, reading the first bitmap in the ICO file.
OpenFromFileOpens a ICO Image from a file, reading the bitmap by given index from the ICO file.
OpenFromStringOpens a ICO Image from a ICO formatted string, reading the first bitmap in the ICO file.
OpenFromStringOpens 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 = 10.02

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