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
 PixelFormat change does not trigger TImageEnView.OnImageChange

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

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
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
PeterPanino Posted - Oct 17 2022 : 13:07:00
I change the PixelFormat of the image in an ImageEnView with this code:

IEGlobalSettings().AutoSetBitDepth := True;
  ImageEnView1.IEBitmap.PixelFormat := ie1g;
  ImageEnView1.Update;
  ShowPixelFormatOnToolbar;


Unfortunately, this does not trigger the OnImageChange Event-Handler!

Is my code incorrect?
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 18 2022 : 18:41:26
Hi Peter

Perhaps, but it is not the design intention of the OnImageChange event to handle programmatic modifications to IEBitmap.

There are very few situations PixelFormat is implicitly changed. You can call ImageEnView1.ImageChange( iecsBitmap ) if you change the PixelFormat in your code.

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Oct 18 2022 : 02:44:13
Hi Nigel

Is that logical? After all, a CHANGE to the TImageEnView.IEBitmap is indeed a CHANGE.

So how can I be notified if something implicitly changes the PixelFormat of the image?
xequte Posted - Oct 17 2022 : 20:42:11
Hi Peter

Yes, that is correct. OnImageChange is only called by changes by editing methods in TImageEnProc or in TImageEnView (e.g. TImageEnView.Clear). Not by changes to the TImageEnView.IEBitmap.

Nigel
Xequte Software
www.imageen.com