ImageEn, unit iemview

TImageEnMView.OnImageLoaded

TImageEnMView.OnImageLoaded


Declaration

property OnImageLoaded: TIEMViewImageNotifyEvent;


Description

Occurs whenever an image is completes loading within the control. If an image is loaded on demand, some properties of the image, such as its Params are not available. This event occurs once the image has completed loading and its content and properties are available.

Note:
 When loading an image with multiple frames, OnImageLoaded will occur once for each frame
 The OnAllDisplayed event occurs once all images are loaded and displayed


Example

// After image has loaded, use EXIF aperture as Info text
procedure TForm1.ImageEnMView1ImageLoaded(Sender: TObject; Idx: Integer);
var
  s: string;
begin
  s := ImageEnMView1.MIO.Params[ Idx ].EXIF_ApertureValue2;
  if s = '' then
    s := '-';
  ImageEnMView1.ImageInfoText[idx] := 'Aperture: ' + s;
end;


See Also

 OnImageAdded 
 OnAllDisplayed