TImageEnIO.LoadFromFileTIFF
Declaration
function LoadFromFileTIFF(const FileName: WideString): integer:
Description
Loads an image from a TIFF file (rev. 6.0, Packbits, LZW, CCITT G.3 and G.4).
FileName is the file name including extension.
Returns the number of images contained in TIFF file. Result will be -1 if an error was encountered while loading, such as the file not being TIFF format (
Aborting will be true). Loading errors due to a file not being available will raise an exception.
Note:
◼You can abort loading by setting
Aborting to true
◼If
AsyncMode = True then the result will always be -1.
// Load the second image in the MyImage.tif file
ImageEnView1.IO.Params.TIFF_ImageIndex := 1;
ImageEnView1.IO.LoadFromFileTIFF('D:\MyImage.tif');
See Also
◼LoadFromStreamTIFF◼SaveToFileTIFF◼InsertToFileTIFF◼ReplaceFileTIFF◼TIFF_ImageIndex◼TIFF_ImageCount◼EnumTIFFIm (Image Count)
◼EnumTIFFStream◼DeleteTIFFImGroup◼DeleteTIFFIm◼ExtractTIFFImageFile◼Global Image Methods