G
Guest
The following 4 lines add a border to a bitmap and save it into clipboard,
however it also add a border to the bitmap on the screen.
I want to create a temp copy of the bitmap and add a border to it without
affecting the bitmap on the screen. Any suggestions? Thanks
'''''
Dim g As Graphics = Graphics.FromImage(MyPpic.Image)
Dim pen As New Pen(Color.Gray)
g.DrawRectangle(pen, 0, 0, MyPpic.Image.Width - 1,
MyPpic.Image.Height - 1) ' draw border
Clipboard.SetDataObject(MyPpic.Image)
''''
however it also add a border to the bitmap on the screen.
I want to create a temp copy of the bitmap and add a border to it without
affecting the bitmap on the screen. Any suggestions? Thanks
'''''
Dim g As Graphics = Graphics.FromImage(MyPpic.Image)
Dim pen As New Pen(Color.Gray)
g.DrawRectangle(pen, 0, 0, MyPpic.Image.Width - 1,
MyPpic.Image.Height - 1) ' draw border
Clipboard.SetDataObject(MyPpic.Image)
''''