Groups | Blog | Home
all groups > dotnet drawing api > april 2004 >

dotnet drawing api : Create an Image object from a Graphics object


Christian Nein
4/2/2004 1:36:56 PM
Hello,

how can I create an Image object from a Graphics object?

Example:
Graphics g = pnlChart.CreateGraphics(); // how can I transform this Graphics
object to an image?

Thanks in advance & best regards,
Christian

Bob Powell [MVP]
4/2/2004 2:15:07 PM
See the GDI+ FAQ article on how to capture the image of a control

--
Bob Powell [MVP]
Visual C#, System.Drawing

All you ever wanted to know about ListView custom drawing is in Well Formed.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

[quoted text, click to view]

AddThis Social Bookmark Button