Home
Features
Demos
Store
Forum
Support
ImageEn Forum
Profile
Join
Active Topics
Forum FAQ
Search
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
Topic
PeterPanino
933 Posts
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.
xequte
38613 Posts
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
PeterPanino
933 Posts
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
38613 Posts
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
Topic
New Topic
Reply to Topic
Jump To:
Select Forum
ImageEn Library for Delphi, C++ and .Net
ImageEn and IEvolution Support Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page