I have a value created by the win32 api function ChooseColor and I want to convert it into a rgb hex tripplet. How do I do this. What exactly is the number returned by ChooseColor?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As you’re doing this in .NET, you can use the
COLORREFvalue and convert to a .NET colour using:If you then want it as an HTML hex triplet string: