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

Properties

Author (console safe) Returns the Author metadata field which is for name of image's creator
Copyright (console safe) Returns theCopyright metadata field which is for copyright notice
Description (console safe) Returns the description metadata field.
Disclaimer (console safe) Returns the disclaimer metadata field which is for legal disclaimer for the image.
Force8bitDepth (console safe) Forces images to be imported with channel depth as 8 bits even if the source image has 16 bits.
Gamma (console safe) Exports a picture formatted as PNG to a IBinaryStreamWriter.
ScreenGamma (console safe) Sets screen gamma to be used. You can use this property to forces 100% same result on all platforms.
Software (console safe) Returns the Software metadata field which is for name of the software used to create the image
Source (console safe) Returns the Source metadata field which is for name of the device used to create the image
Title (console safe) Returns the Title metadata field which is for short one line title for image
Warning (console safe) Returns the Warning metadata field which is for warnings of nature of content

Methods

OpenFromFile (console safe) Opens a PNG Image from a file.
OpenFromStream (console safe) Opens a PNG Image from a IBinaryStreamWriter.
OpenFromString (console safe) Opens 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