GraphicsFormats Xojo plugin

PngImporter Class

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

Object
   PngImporter

class PngImporter implements

IGraphicsImporter

Properties

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.
GammaUse this property to alter the Embedded Gamma or default Gamma values for the Import.
IgnoreMaskSet to true if alpha channel (Mask) of the picture should be ignored when it is imported.
MaskInAlphaChannelSet this value to true if wanting the alpha channel returned in new style Xojo alpha channel instead of a Mask.
ScreenGamma (console safe) Sets 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

GetInfoFromFileReads image size and metadata from PNG file without reading the whole image.
GetInfoFromStreamReads image size and metadata from PNG stream without reading the whole image.
GetInfoFromStringReads image size and metadata from PNG that is stored in a string without reading the whole image.
OpenFromFileOpens a PNG Image from a file.
OpenFromStreamOpens a PNG Image from a IBinaryStreamWriter.
OpenFromStringOpens a PNG Image from a String.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM