, , , , Color. , Color .
static, . static , , . () ; . ( ) .
, . Color (, Color , , 32- int.). Color class struct, ( 32- v-table/typeinfo, 32-), 12 . 100 , <= 1200 . .
. , , , , , , .. , :
class Heavy{
static Heavy first;
static Heavy second;
public static Heavy First{
get{
if(first == null)
first = new Heavy();
return first;
}
}
public static Heavy Second{
get{
if(second == null)
second = new Heavy();
return second;
}
}
}
. Color ? , , , ?
Color , "" , . , - - :
Color.Red.G = 255;
Color.Red .
, , :
for(int y = 0; y < bmp.Height; y++)
for(int x = 0; x < bmp.Width; x++)
if(bmp.GetPixel(x, y) == Color.Red))
MessageBox.Show("Found a red pixel!");
A Color . , , ( "" , ).
, Color , . , new struct, v- , , .