
Signature
Dr Jon D Harrop, Flying Frog Consultancy
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/index.html?usenet
"Jon Harrop" <jon@ffconsultancy.com> schrieb:
> How do I clear a bitmap to a single color, or draw a rectangle into a
> bitmap
> to clear it? Do I have to iterate over the pixels myself?
Check out the 'Graphics' class, especially its 'FromImage' and
'FillRectangle' methods.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Ciaran O''Donnell - 25 Jan 2007 09:29 GMT
Bitmap b;
Graphics.FromImage(b).Clear(Color.Red);

Signature
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
> "Jon Harrop" <jon@ffconsultancy.com> schrieb:
> > How do I clear a bitmap to a single color, or draw a rectangle into a
[quoted text clipped - 3 lines]
> Check out the 'Graphics' class, especially its 'FromImage' and
> 'FillRectangle' methods.