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