-
GetPixel Color Value
Im using the BitMap object to get a pixel color. No Im not sure as to how to convert that to a string or to view that in any. The only thing I want to do is get the colour value of the Bitmap pixel. As in black would be 255 and white would be 0. Anyone know how to do this?
-
Re: GetPixel Color Value
GetPixel returns a color object doesn't it? With that color you should have the following methods available to you :
GetRed()
GetGreen()
GetBlue()
-
Re: GetPixel Color Value
From MSDN:
A Color object stores a 32-bit value that represents a color. The color value contains four, 8-bit components: alpha, red, green, and blue. The first 8 bits (the most significant) contain the alpha component, the next 8 bits contain the red component, the next 8 bits contain the green component, and the next 8 bits (the least significant) contain the blue component. The 32-bit value is stored in a variable of type ARGB.
-
Re: GetPixel Color Value
you could just access the R, G, B, A fields of your Color object