A class to Import RawBitmap from a TIFF format. The picture can be imported from 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 import ICC Color Profile if the image has ICC Color Profile.
The RawTIFFImporter can import 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
RawTIFFImporter
class RawTIFFImporter implements
IRawBitmapReader
Properties
CurrentDirectoryIndex (console safe) | Returns current directory index within last read TIFF file. |
Information (console safe) | Property to read TIFF tags. |
LastDirectoryIndex (console safe) | Returns index of the last directory within the last read TIFF file. |
ProgressHandler (console safe) | To get progress feedback then assign a a class instance that implements the IProgressHandlerV2 interface to this property. |
Methods
GetLastErrorCode (console safe) | Gets the the last error number or zero if there was no error. |
OpenFromFile (console safe) | Opens a TIFF Image from a file. |
OpenFromFile (console safe) | Opens a TIFF Image from a file taking in directory index as parameter. |
OpenFromString (console safe) | Opens a TIFF Image from a String. |
OpenFromString (console safe) | Opens a TIFF Image from a String taking in directory index as parameter. |
Constants
Version = 12.0 | |
Supported Platforms:
macOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bitiOS