TIEMultiBitmap.GetImageToFile
Declaration
procedure GetImageToFile(idx: Integer; const FileName: WideString; IOParams: TIOParams = nil);
Description
Saves the image at index,
idx, to file. The file format is determined by the file extension.
| Parameter | Description |
| idx | The image index (0=first image) |
| FileName | The destination path and file name |
| Params | The save parameters |
// Separate the pages of a multipage TIFF
MBitmap.LoadFromFile('multipage.tif');
MBitmap.GetImageToFile(0, 'page1.tif');
MBitmap.GetImageToFile(1, 'page2.tif');