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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top