Hi,
I know it should be pretty easy to achieve. I am just starting to learn VB.NET.
I need help creating an outline around a custom shape picturebox.
I also need to specify the color and thickness of this outline. The path is on variable gp... but I can't figure how to redraw this on top and not inside the canvas to give it the appearance of a border.
Here is my code:
' Define canvas shape.......
Dim r As New Rectangle(0, 0, picCanvas.Width, picCanvas.Height)
Dim d As Integer = 30
Dim gp As New Drawing2D.GraphicsPath()
'Dim g As Graphics = Me.CreateGraphics()
gp.AddArc(r.X, r.Y, d, d, 180, 90)
gp.AddArc(r.X + r.Width - d, r.Y, d, d, 270, 90)
gp.AddArc(r.X + r.Width - d, r.Y + r.Height - d, d, d, 0, 90)
gp.AddArc(r.X, r.Y + r.Height - d, d, d, 90, 90)
picCanvas.Region = New Region(gp)
-------------------------------------------------
Any help will be trully appreciated.
Thanks in advance.