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
 Load Image / Frame Change
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Ronald Ruijs

Netherlands
24 Posts

Posted - Mar 25 2020 :  08:55:06  Show Profile  Reply
Hello,

I would like to override ImageChange event, in order to Implement different handling for New Image and Image Frame change.

So, I would like to know if the event is fired ny loading a new image file or by loading another frame of a multifram.

Is this possible? If so, how?

Usecase: medical imagaging, playing multiframe and propagating user-changed Width/Level changes during playing, but reset to default when loading new image file.

Regards, Ronald

xequte

38127 Posts

Posted - Mar 25 2020 :  20:18:18  Show Profile  Reply
Hi Ronald

You mean in TImageEnMView, correct?

Can you just use the ImageEnMView.IEMBitmap.OnChange event?



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

Ronald Ruijs

Netherlands
24 Posts

Posted - Mar 26 2020 :  16:26:31  Show Profile  Reply
Sorry, should have mentioned: no, I mean TImageEnView.
Go to Top of Page

xequte

38127 Posts

Posted - Mar 26 2020 :  16:35:28  Show Profile  Reply
Hi


Can you use the TImageEnView.IEBitmap.OnChange event?


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

Ronald Ruijs

Netherlands
24 Posts

Posted - Mar 27 2020 :  06:31:14  Show Profile  Reply
Hi Nigel,

Tried your suggestion: the IEBitmap.OnChanged event fires in the same situations as OnImageChangeEx, but does not give a clue why, where OnImageChangeEx passes the reason in ChangeSource parameter.

I guess my request would be to extend OnImageChangeEx Changesource parameter with value indicating

"other frame of current image file/stream loaded, no new image file/stream loaded"

or something of that kind.

Regards, Ronald
Go to Top of Page

xequte

38127 Posts

Posted - Mar 27 2020 :  17:18:52  Show Profile  Reply
Hi Ronald

Sorry, I didn't read your first message properly. You are loading subsequent frames in a multi-frame image? In that case is it not a change to the bitmap, but a loading event. You should be able to update your UI in the OnFinishWork event.

https://www.imageen.com/help/TImageEnView.OnFinishWork.html

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

Ronald Ruijs

Netherlands
24 Posts

Posted - Apr 01 2020 :  03:28:06  Show Profile  Reply
Hi Nigel,

Tried OnFinshWork too, there I also could not distinguish between "Other frame of current multiframe image" and "New Image file/stream".

However, this issue can also be solved by creating my own LoadFromFile method, so maybe that is the easies way to go.

Regards, Ronald
Go to Top of Page

xequte

38127 Posts

Posted - Apr 01 2020 :  15:35:12  Show Profile  Reply
Hi

Yes, that is true. You would need to compare the filename in ImageEnView1.IO.Params.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: