Click here to Skip to main content
11,492,914 members (60,540 online)
Click here to Skip to main content

Tagged as

Get Known Color from int value

, 17 Nov 2009 CPOL 8.8K 1
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


Comments and Discussions

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