Read Part of a Bitmap

  • Thread starter Thread starter Samuel
  • Start date Start date
S

Samuel

Hi

I would like to read a specified rectangle from an existing bitmap and draw
it in another.


Thank you,
Samuel
 
Graphics.DrawImage allows you to select a source rectangle and draw it to a
Graphics object.
The Graphics object can be another bitmap or any device.
 
Samuel said:
Hi

I would like to read a specified rectangle from an existing bitmap and draw
it in another.


Thank you,
Samuel

Create a Graphics object for the Bitmap that you want to draw on using
the Graphics.FromImage method. Use the DrawImage method in the Graphics
object to draw part of the image.
 

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

Similar Threads


Back
Top