ImageEn, unit iemio

TImageEnMIO.Aborting

TImageEnMIO.Aborting


Declaration

property Aborting: boolean;


Description

Applications can abort save/load processing by assigning True to the Aborting property. On loading, the image will be truncated. On saving, the file will be closed and truncated (and will be unreadable).
You can also read the Aborting property to know when aborting has occured (e.g. due to a failed load).

Note: The result from all LoadFromFile() methods returns false if Aborting has occured


Example

MyImageEnMView.LoadFromFileGIF('C:\MyGif.gif');
MyImageEnMView.Aborting then...

Which is the same as:
If MyImageEnMView.LoadFromFileGIF('C:\MyGif.gif') = False then...