Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Vincent Lin
|
Mar 8, 2007 - 7:29 PM
|
Dear Sir, How to get the hue and saturation from CExtColorCtrl and CExtColorButton ?
|
|
Technical Support
|
Mar 9, 2007 - 8:16 AM
|
In the CExtBitmap class there are two static methods, stat_RGBtoHSL and stat_HLStoRGB , that should help you perform these conversions.
|
|
Suhai Gyorgy
|
Mar 9, 2007 - 1:52 AM
|
What you need is an RGB to HSL conversion algorithm. You can find a lot of implementation if it on the net, this is the first I’ve found: Paul Bourke’s Converting between various colour spaces. The code given on that page is in C, so probably it won’t give you any trouble using it.
|
|