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.
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.