ImageEn, unit iemview

TIEWrongImageEvent

TIEWrongImageEvent


Declaration


TIEWrongImageEvent = procedure(Sender: TObject; OutBitmap: TIEBitmap; idx: integer; var Handled: boolean) of object;


Description


Used by OnWrongImage whenever TImageEnMView cannot load the image specified in ImageFileName property, for instance when the file is corrupted or of an unrecognized format.

idx specifies the image index.
If you change the OutBitmap, also set Handled to True.
If Handled is false, TImageEnMView replaces the bitmap with a question mark image.