03-31-2010 09:22 AM
I spent a bit of time looking for that one and since I solved it I thought I might share the love.
So this is how you paste the image of a 3Dgraph onto the clipboard so that it can then be copied to any document:
Dim imgMF As Imaging.Metafile = CType(CWGraph3D1.ControlImage, Imaging.Metafile) Dim bm As New Bitmap(CWGraph3D1.Width, CWGraph3D1.Height) Dim gr As Graphics = Graphics.FromImage(bm) gr.DrawImage(imgMF, 0, 0, CWGraph3D1.Width, CWGraph3D1.Height) gr.Dispose() Clipboard.SetImage(bm)
04-01-2010 02:08 AM