Clearing bitmaps

  • Thread starter Thread starter Jon Harrop
  • Start date Start date
J

Jon Harrop

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?
 
Jon Harrop said:
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.
 
Back
Top