.net - How do I convert a color value created by the Win32 API Function "ChooseColor " into a css compatible rgb hex value -



.net - How do I convert a color value created by the Win32 API Function "ChooseColor " into a css compatible rgb hex value -

i have value created win32 api function choosecolor , want convert rgb hex tripplet. how do this. number returned choosecolor?

as you're doing in .net, can utilize colorref value , convert .net colour using:

color colour = colortranslator.fromwin32(mycolorref);

if want html hex triplet string:

string htmlcolour = colortranslator.tohtml(colour);

.net winapi colors

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

content management system - How to allow only English submissions on Pligg CMS -

How do I check if an insert was successful with MySQLdb in Python? -