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
 How to calculate TImageEnViewToolbar.ImageHue?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Aug 16 2020 :  14:12:20  Show Profile  Reply
I need to set the ImageToolbar Button COLOR to a specific TColor.

But how can I calculate ImageEnViewToolbar1.ImageHue from a TColor?

I have tried:

ColorToHSV($ECAC00, h, s, v);


...and then using the h value, but it doesn't work.

xequte

38613 Posts

Posted - Aug 16 2020 :  16:06:57  Show Profile  Reply
Hi Peter

Unfortunately is not that simple because the toolbars glyphs already have color, so you can only adjust the existing hue.



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

PeterPanino

933 Posts

Posted - Aug 17 2020 :  03:43:54  Show Profile  Reply
Hi Nigel,

the documentation says:

-180 to +180 Default color is modified by the specifed hue

So which value in the range between -180 and +180 is most similar to the TColor value of $ECAC00?
Go to Top of Page

xequte

38613 Posts

Posted - Aug 19 2020 :  01:53:29  Show Profile  Reply
Hi Peter

Save one of the images above and open it in the \ImageEditing\CompleteEditor\PhotoEn.dpr demo.

Then select Tools > Adjust Image, "HSV" tab and adjust the Hue value to find a color you like.




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