Declaration
procedure ExtractTIFFImageStream(SourceStream, OutStream: TStream; idx: Integer);
Description
Extracts the page, idx, (starting at 0) from SourceStream and saves it to OutStream.
It doesn't remove the page from source file; also it doesn't decompress the image resulting in a very quick process.
// extract first page
fr := TFileStream.Create('input_multipage.tif', fmOpenRead);
fw := TFileStream.Create('page0.tif', fmCreate);
ExtractTIFFImageFile( fr , fw, 0 );
fw.Free();
fr.Free();
See Also
◼ExtractTIFFImageFile◼EnumTIFFStream (Image Count)
◼DeleteTIFFImGroup◼DeleteTIFFIm◼InsertTIFFImageStream◼Global Image Methods◼LoadFromStreamTIFF◼InsertToStreamTIFF◼ReplaceStreamTIFF◼SaveToStreamTIFF