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.
 
Back
Top