TImageEnIO.SaveToFileTIFF
Declaration
procedure SaveToFileTIFF(const FileName: WideString);
Description
Saves the current image to a file in TIFF format.
FileName is the file name including extension.
Note:
◼TImageEnIO.SaveToFileTIFF only supports saving of a single frame TIFF. To save a TIFF with multiple frames use
TImageEnMIO.SaveToFileTIFF, or insert a frame using
InsertToFileTIFF◼If an internal save error is encountered
Aborting will return true. Saving issues due to insufficient write permissions and disk write failures will raise an exception.
◼To abort while saving set
Aborting to true
ImageEnView1.IO.Params.DocumentName := 'My document';
ImageEnView1.IO.SaveToFileTIFF('C:\image.tiff');
// Save a TIFF with CMYK
ImageEnView1.IO.LoadFromFile('D:\image.tif');
ImageEnView1.IO.Params.TIFF_PhotometInterpret := ioTIFF_CMYK;
ImageEnView1.IO.SaveToFileTIFF('D:\image-cmyk.tif');
// Save TIFF as 32bit gray-scale (ie32f)
// Note: Compression must be: ioTIFF_UNCOMPRESSED, ioTIFF_LZW, ioTIFF_PACKBITS or ioTIFF_ZIP
ImageEnView1.LegacyBitmap := false;
ImageEnView1.IEBitmap.PixelFormat := ie32f;
ImageEnView1.IO.Params.BitsPerSample := 32;
ImageEnView1.IO.Params.SamplesPerPixel := 1;
ImageEnView1.IO.Params.TIFF_PhotometInterpret := ioTIFF_BLACKISZERO;
ImageEnView1.IO.Params.TIFF_Compression := ioTIFF_UNCOMPRESSED;
ImageEnView1.IO.SaveToFileTIFF('D:\GrayTiff32.tiff');
// Save a monochrome TIFF image
ImageEnView1.IO.Params.BitsPerSample := 1;
ImageEnView1.IO.Params.SamplesPerPixel := 1;
ImageEnView1.IO.Params.TIFF_Compression := ioTIFF_G4FAX;
ImageEnView1.IO.SaveToFileTIFF('D:\output.tif');
See Also
◼SaveToStreamTIFF◼LoadFromFileTIFF◼InsertToFileTIFF◼ReplaceFileTIFF◼TIFF_ImageIndex◼TIFF_ImageCount◼DeleteTIFFImGroup◼DeleteTIFFIm◼Global Image Methods