By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,401 Members | 1,381 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,401 IT Pros & Developers. It's quick & easy.

Read Part of a Bitmap

P: n/a
Hi

I would like to read a specified rectangle from an existing bitmap and draw
it in another.
Thank you,
Samuel
Aug 6 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" <sa************@ntlworld.comwrote in message
news:ub**************@TK2MSFTNGP06.phx.gbl...
Hi

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

Aug 6 '07 #2

P: n/a
Samuel wrote:
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.

--
Göran Andersson
_____
http://www.guffa.com
Aug 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.