Copy an Ellipse from a Bitmap (Solved)
Hi all!
How can you copy an elliptical shape off of a bitmap? I already know that you can copy a rectangular shape, but is it possible to do this?
Thanks!
Nic
vb Code:
Public Class Form1
Private Sub Form1_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
Dim Bmp As New Bitmap(My.Resources.background)
Dim srcRect As New Rectangle(120, 20, 120, 120)
'e.Graphics.DrawImage(Bmp, ClientRectangle, srcRect, GraphicsUnit.Pixel)
e.Graphics.DrawImage(Bmp, 0, 0)
e.Graphics.DrawEllipse(Pens.Red, srcRect)
End Sub
End Class
Re: Copy an Ellipse from a Bitmap
Nevermind - this is solved. I will post the code as soon as I refine it.