ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Most efficient way to display values in ImageEnMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yeohray2

Malaysia
100 Posts

Posted - Oct 28 2021 :  00:02:54  Show Profile  Reply
I'm displaying a series of images in TImageEnMView using the AppendImage function. In the caption/text for each image, I would like to display some values from the image's properties e.g. the Exif aperture value.

What is the most efficient way of doing this? I could use the ImageTopText/ImageInfoText/ImageBottomText properties, or use the OnGetText event handler. However, is there an event that fires after ImageEn has internally loaded the thumbnail for that image, so that the image is still in memory and I can just use the already-loaded image to extract the values I need and set the text accordingly?

Thanks in advance.

Regards
Ray

xequte

38196 Posts

Posted - Oct 28 2021 :  19:14:56  Show Profile  Reply
Hi Ray

You can use the OnImageLoaded to fill it once the image is available, e.g.

// 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;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
100 Posts

Posted - Oct 29 2021 :  05:07:14  Show Profile  Reply
Got it, thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: