S
Steve Richter
using SetPixel to set all the pixels of a bitmap to Color.Red.
Problem is the bitmap displays as Color.Turqoise.
if all the pixels of the bitmap are Red, why does it not display as
Red?
thanks,
Bitmap bm = new Bitmap(5, 12 );
// set the bitmap pixels to color.Red
for (int x = 0; x < bm.Width; x++)
{
for (int y = 0; y < bm.Height; y++)
{
bm.SetPixel(x, y, Color.Red);
}
}
CreateCaret(this.Handle, bm.GetHbitmap( ), bm.Width, bm.Height);
Problem is the bitmap displays as Color.Turqoise.
if all the pixels of the bitmap are Red, why does it not display as
Red?
thanks,
Bitmap bm = new Bitmap(5, 12 );
// set the bitmap pixels to color.Red
for (int x = 0; x < bm.Width; x++)
{
for (int y = 0; y < bm.Height; y++)
{
bm.SetPixel(x, y, Color.Red);
}
}
CreateCaret(this.Handle, bm.GetHbitmap( ), bm.Width, bm.Height);