Copy drawn image to clipboard
Posted on 2009-04-20
I am drawing an image onto a picturebox which I then need to copy to the clipboard.
I have done this before with groups of controls using:
Dim bmp As New Bitmap(icontrolwidth, icontrolheight)
Me.pic1.DrawToBitmap(bmp, New Rectangle(icontrolleft, icontroltop, icontrolwidth, icontrolheight))
but since I am drawing this myself (using Graphics.FillPolygon) it does not put any data in the clipboard.
How can I acheive this (which will be pasted into MS Office document after this).