ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Load Image / Frame Change

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Size 
UserName:
Password:
Mode 
Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List
   
Message 

 

Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Ronald Ruijs Posted - Mar 25 2020 : 08:55:06
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
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 01 2020 : 15:35:12
Hi

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

Nigel
Xequte Software
www.imageen.com
Ronald Ruijs Posted - Apr 01 2020 : 03:28:06
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
xequte Posted - Mar 27 2020 : 17:18:52
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/ImageEn/TImageEnView.OnFinishWork.html

Nigel
Xequte Software
www.imageen.com
Ronald Ruijs Posted - Mar 27 2020 : 06:31:14
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
xequte Posted - Mar 26 2020 : 16:35:28
Hi


Can you use the TImageEnView.IEBitmap.OnChange event?


Nigel
Xequte Software
www.imageen.com
Ronald Ruijs Posted - Mar 26 2020 : 16:26:31
Sorry, should have mentioned: no, I mean TImageEnView.
xequte Posted - Mar 25 2020 : 20:18:18
Hi Ronald

You mean in TImageEnMView, correct?

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



Nigel
Xequte Software
www.imageen.com