S
Seabass
Hello everyone,
I have to do an image viewer for an exotic format so I want to know
how to place pixels somewhere on the form or on some object.
I tried doing this but it works incredibly slow.
{
Bitmap bmp = new Bitmap(this.Width, this.Height);
for (int i = 0; i < this.Width; i++)
{
for (int j = 0; j < this.Height; j++)
{
bmp.SetPixel(i, j, Color.Blue);
}
}
Graphics g = this.CreateGraphics();
g.DrawImage(bmp, new Point(0, 0));
bmp.Dispose();
}
I have to do an image viewer for an exotic format so I want to know
how to place pixels somewhere on the form or on some object.
I tried doing this but it works incredibly slow.
{
Bitmap bmp = new Bitmap(this.Width, this.Height);
for (int i = 0; i < this.Width; i++)
{
for (int j = 0; j < this.Height; j++)
{
bmp.SetPixel(i, j, Color.Blue);
}
}
Graphics g = this.CreateGraphics();
g.DrawImage(bmp, new Point(0, 0));
bmp.Dispose();
}