GraphicsFormats Xojo plugin

RawPngExporter Class (console safe)

A class to Export Pictures to a PNG format. The result can be written to a File, string or IBinaryStreamWriter.

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

This class will also include ICC Color Profile if the RawBitmap had ICC Color profile on it.

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

Object
   RawPngExporter

class RawPngExporter

Properties

Author (console safe) Writes to the Author metadata field which is for name of image's creator
CompressionLevel (console safe) Sets compression level (0 - 9)
Copyright (console safe) Writes to the Copyright metadata field which is for copyright notice
Description (console safe) Writes to the description metadata field.
Disclaimer (console safe) Writes to the disclaimer metadata field which is for legal disclaimer for the image.
Gamma (console safe) Use this property to alter the default Gamma values for the Export.
IgnoreAlphaChannel (console safe) If set to true then the alpha channel in a image is not imported if the image has an alpha channel.
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) Writes to the Software metadata field which is for name of the software used to create the image
Source (console safe) Writes to the Source metadata field which is for name of the device used to create the image
Title (console safe) Writes to the Title metadata field which is for short one line title for image
Warning (console safe) Writes to the Warning metadata field which is for warnings of nature of content

Methods

SaveToFile (console safe) Exports a RawBitmap to a PNG file.
SaveToStream (console safe) Exports a RawBitmap formatted as PNG to a IBinaryStreamWriter.
SaveToString (console safe) Exports a picture formatted as PNG to 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