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
 Changes made by MouseAdjustBlackWhite-Action from ImageEnView into ImageEnMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

BBriefs

Germany
3 Posts

Posted - Oct 09 2023 :  09:19:33  Show Profile  Reply
Hello,

I am using a standard setup with an TImageEnMView as an image-list combined with an TImageEnView to show and edit the selected images.
To edit the imagein the TImageEnView I am using actions. To apply the changes to the TImageEnMView I simply call ImageEnMView.SetImage(Index, ImageenView.IEBitmap) in the OnActionExecute of the ImageEnView.

That works for most actions like cropping, rotating and so on, but not for MouseAdjustBlackWhite, where the SetImage-Call simply resets the brightness/contrast-changes. The threads and demos I have found with regard to that topic explain how to save manual changes to brightness/contrast, but not how to do that when using the MouseAdjustBlackWhite-action.

I would be grateful if someone could explain how to achieve that.

xequte

38610 Posts

Posted - Oct 09 2023 :  14:32:14  Show Profile  Reply
Hi

MouseAdjustBlackWhite enables the miAdjustBlackWhite interaction

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

Which sets:

https://www.imageen.com/help/TIEBitmap.BlackValue.html
https://www.imageen.com/help/TIEBitmap.WhiteValue.html

To apply those changes you must call:

https://www.imageen.com/help/TIEBitmap.StretchValues


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