Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RGB Color Dialog with Luminance

4 views
Skip to first unread message

Thiago Rodrigues

unread,
Oct 14, 2013, 3:00:49 PM10/14/13
to
Hello,

I have a Color Dialog working for a portion of my software, and I would like to know how C++ calculates the RGB values based on a change of Luminance, I hope anyone can solve this.

For example, any given color:

Luminance: 142
RGB Values: 77/68/234.

Same color, luminance changed:

Luminance:204
RGB Values: 189/186/248.

Best Regards,
0 new messages