GraphicsFormats Xojo plugin

RawPngImporter Class (console safe)

A class to Import RawBitmap from a PNG format. The picture can be imported from a File, string or IBinaryStreamReader.

This class uses RawBitmap that is defined in TypeLib instead of Xojo Pictures. RawBitmap can be used in console applications.

This class will import ICC Color Profile if the image has ICC Color Profile.

The RawPngImporter can import images with either 8 bit per channel or 16 bit per channel, maintaining full precision.

Object
   RawPngImporter

class RawPngImporter implements

IRawBitmapReader

Properties

AbortedReturns true if the import was aborted by progress handler.
AuthorReturns the Author metadata field which is for name of image's creator
CopyrightReturns theCopyright metadata field which is for copyright notice
DescriptionReturns the description metadata field.
DisclaimerReturns the disclaimer metadata field which is for legal disclaimer for the image.
ErrorMessageReturns human readable ErrorMessage.
Force8bitDepthForces images to be imported with channel depth as 8 bits even if the source image has 16 bits.
GammaGamma value that was read from the image.
LastErrorReturns code of last error that occurred or zero if no error.
ProgressHandlerIf delegate is assigned to this property then the importer will report progress to the delegate method and the import can also be canceled from the delegate.
ScreenGammaSets screen gamma to be used. You can use this property to forces 100% same result on all platforms.
SoftwareReturns the Software metadata field which is for name of the software used to create the image
SourceReturns the Source metadata field which is for name of the device used to create the image
TitleReturns the Title metadata field which is for short one line title for image
WarningReturns the Warning metadata field which is for warnings of nature of content

Methods

FileExtensionsReturns array of file extensions which this image format can use.
GetLastErrorCodeSame as the LastError property but this one returns it as Integer to full-fill the standard interface.
InternetMediaTypesReturns array of internet media types which this image format can use.
OpenFromFileOpens a PNG Image from a file.
OpenFromStreamOpens a PNG Image from a IBinaryStreamWriter.
OpenFromStringOpens a PNG Image from a String.
ReadHeaderReads header for the PNG image.
UTIReturns UTI identifier for the file format of this class.
UTIConformsToReturns UTI conforms to identifier for the file format of this class.
UTIDescriptionReturns UTI description for the file format of this class.

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