TImageEnIO.ReplaceFileTIFF
Declaration
function ReplaceFileTIFF(const FileName: WideString): Integer;
Description
Save the current image into the specified multi-page TIFF file, replacing the image at the index specified by
Params.
TIFF_ImageIndex.
Returns the number of images inside the file.
Note: Only Intel Byte Order is supported (
TIFF_ByteOrder = ioLittleEndian). If you need to support ioBigEndian, use
InsertTIFFImageFile
// We have a multipage tiff, named 'multipage.tif'.
// We want to change only the second page (index 1), making it negative.
ImageEnView1.IO.Params.TIFF_ImageIndex := 1; // select page
ImageEnView1.IO.LoadFromFile('D:\multipage.tif');
ImageEnView1.Proc.Negative();
ImageEnView1.IO.ReplaceFileTIFF('D:\multipage.tif');
// Update the file for the selected frame of a multi-page TIFF in a TImageEnMView
IO := TImageEnIO.Create(nil);
IO.Params.TIFF_ImageIndex := ImageEnMView1.SelectedImage; // select page
IO.IEBitmap.Assign( ImageEnMView1.IEBitmap );
IO.ReplaceFileTIFF( ImageEnMView1.MIO.LastFilename );
IO.Free;
See Also
◼ReplaceStreamTIFF
◼LoadFromFileTIFF
◼SaveToFileTIFF
◼InsertToFileTIFF
◼TIFF_ImageIndex
◼TIFF_ImageCount
◼DeleteTIFFImGroup
◼DeleteTIFFIm
◼InsertTIFFImageFile
◼Global Image Methods