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 implements

IRawBitmapWriter

Properties

AuthorWrites to the Author metadata field which is for name of image's creator
CompressionLevelSets compression level (0 - 9)
CopyrightWrites to the Copyright metadata field which is for copyright notice
DescriptionWrites to the description metadata field.
DisclaimerWrites to the disclaimer metadata field which is for legal disclaimer for the image.
GammaUse this property to alter the default Gamma values for the Export.
IgnoreAlphaChannelIf set to true then the alpha channel in a image is not imported if the image has an alpha channel.
LastErrorReturns code of last error that occurred or zero if no error.
ScreenGammaSets screen gamma to be used. You can use this property to forces 100% same result on all platforms.
SoftwareWrites to the Software metadata field which is for name of the software used to create the image
SourceWrites to the Source metadata field which is for name of the device used to create the image
TitleWrites to the Title metadata field which is for short one line title for image
WarningWrites to the Warning metadata field which is for warnings of nature of content

Methods

GetLastErrorCodeSame as the LastError property but this one returns it as Integer to full-fill the standard interface.
SaveToFileExports a RawBitmap to a PNG file.
SaveToStreamExports a RawBitmap formatted as PNG to a IBinaryStreamWriter.
SaveToStringExports a picture formatted as PNG to a String.

Constants

Version = 7.5

Supported Platforms:

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