Click here to Skip to main content
12,758,300 members (35,250 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

10.6K views
1 bookmarked
Posted 17 Nov 2009

Get Known Color from int value

, 17 Nov 2009 CPOL
Rate this:
Please Sign up or sign in to vote.
if you think Color myColor = Color.FromArgb(0); will give you the known color black, then you are wrong. you need to get it from the colortranlator class. like this:Color c = ColorTranslator.FromWin32(0);So what am i saying ?, is Color.FromArgb(0) not the same as ColorTranslator.FromWin32(

if you think Color myColor = Color.FromArgb(0); will give you the known color black, then you are wrong. you need to get it from the colortranlator class. like this:

Color c = ColorTranslator.FromWin32(0);

So what am i saying ?, is Color.FromArgb(0) not the same as ColorTranslator.FromWin32(0), well it is and it is'nt, its the same color (black), but the color struct is not the same. try it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


You may also be interested in...

Pro

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 18 Nov 2009
Article Copyright 2009 by Paw Jershauge
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid