GraphicsFormats Xojo plugin

RawTIFFExporter Class

A class to export RawBitmap to a TIFF format. The picture can be exported to a File or string.

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 RawTIFFIExporter can export images with RGB or CMYK color spaces, either 8 bit per channel or 16 bit per channel, maintaining full precision.

Multiple images within same TIFF are supported.

This class uses libtiff which has the following copyright:

Copyright (c) 1988-1997 Sam Leffler
Copyright (c) 1991-1997 Silicon Graphics, Inc.

Permission to use, copy, modify, distribute, and sell this software and
its documentation for any purpose is hereby granted without fee, provided
that (i) the above copyright notices and this permission notice appear in
all copies of the software and related documentation, and (ii) the names of
Sam Leffler and Silicon Graphics may not be used in any advertising or
publicity relating to the software without the specific, prior written
permission of Sam Leffler and Silicon Graphics.

THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
OF THIS SOFTWARE.

Object
   RawTIFFExporter

class RawTIFFExporter implements

IRawBitmapWriter

Properties

LastErrorReturns error code for last error that occurred.
ProgressHandlerTo get progress feedback then assign a a class instance that implements the IProgressHandlerV2 interface to this property.

Methods

AddBitmapUsed to add multiple bitmaps when exporting to a TIFF that contains more than one image.
ClearBitmapsClears all bitmaps that have been added.
GetLastErrorCodeSame as the LastError property but this one returns it as Integer to full-fill the standard interface.
SaveBitmapsToFileSaves multiple bitmaps that have been added with the AddBitmap method to a single TIFF file.
SaveBitmapsToStringSaves multiple bitmaps that have been added with the AddBitmap method to a single TIFF file that is returned as string.
SaveToFileExports a RawBitmap picture to a TIFF file.
SaveToStringExports a picture formatted as TIFF to a String.

Enumerations

ErrorValuesEnum that contains possible error codes that the LastError property of the RawTIFFExporter can return.

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

    Unsupported Platforms:

  • MacOS X Carbon