ImageEn, unit iexBitmaps

TIEBitmap.Modified

TIEBitmap.Modified


Declaration

property Modified: Boolean;


Description

Returns true if the image has changed since loading. This includes methods such as Rotate, Flip and Resample, as well as any method of TImageEnProc.

Changes to the following properties do not affect Modified:
Canvas
IECanvas
ScanLine
Pixels
PixelFormat

Note:
Modified is reset to false whenever the TIEBitmap is loaded, i.e. using LoadFromFile or via TImageEnIO
Saving a TIEBitmap does not reset Modified


Example

// Check the status of the loaded image on FormClose
If ImageEnView1.IEBitmap.Modified then
  if MessageDlg( 'Save changes to your image?', mtConfirmation, [mbYes,mbNo], 0) = mrYes then
    ImageEnView1.IO.SaveToFile( ImageEnView1.IEBitmap.Filename );


See Also

OnChanged