.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
Post a Comment