ReadTIFFArray

Declaration: ReadTIFFArray (FName: string; var Data: TInt2DArray; BitMask: longword; FeedBack: boolean): integer;;
Reads the photo data stored in TIFF format and copies it into the dyamic array Data. The photo may be either a black&white, grayscale, or RGB color image. The parameter FName specifies the full file path of the TIFF file. The parameter BitMask allows to mask off bits of the image. For example, setting Bitmask to $0000FF00 extracts only the green values. The parameter Feedback controls whether a visual feedback is provided during the import of the data.

The function returns the following error codes:

 0 ... everything is OK, the TIFF file has been imported
-1 ... the file does not exist


Last Update: 2018-Aug-08