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
 How to calculate TImageEnViewToolbar.ImageHue?

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 - Aug 16 2020 : 14:12:20
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.
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 19 2020 : 01:53:29
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
PeterPanino Posted - Aug 17 2020 : 03:43:54
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?
xequte Posted - Aug 16 2020 : 16:06:57
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