How to draw a thick arrow in picturebox
Posted: Mon Oct 14, 2013 11:31 am
Hello I have here a problem with drawing on the picture.
Draw a picture on well but it's drawing a thin line and I need a thicker thickness of at least 4.5.
But I'd like to draw arrow and not line.
Need a simple arrows with no gradient and a much smaller and thinner.
Approximately 4.5 thickness used on the image.
Here's an example of what I need.
![Image](https://cdn2.iconfinder.com/data/icons/vista-artistic-icons/128/901200-arrow-left-red.png)
how do i do that ?
So far, I have only this code.
Here is the code:
Any help would benefit me.
Draw a picture on well but it's drawing a thin line and I need a thicker thickness of at least 4.5.
But I'd like to draw arrow and not line.
Need a simple arrows with no gradient and a much smaller and thinner.
Approximately 4.5 thickness used on the image.
Here's an example of what I need.
![Image](https://cdn2.iconfinder.com/data/icons/vista-artistic-icons/128/901200-arrow-left-red.png)
how do i do that ?
So far, I have only this code.
Here is the code:
Code: Select all
Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
If _Previous IsNot Nothing Then
If PictureBox1.Image Is Nothing Then
Dim bmp As New Bitmap(PictureBox1.Width, PictureBox1.Height)
Using g As Graphics = Graphics.FromImage(bmp)
g.Clear(Color.White)
End Using
PictureBox1.Image = bmp
End If
Using g As Graphics = Graphics.FromImage(PictureBox1.Image)
g.DrawLine(Pens.Red, _Previous.Value, e.Location)
End Using
PictureBox1.Invalidate()
_Previous = e.Location
End If
End Sub
Private _Previous As System.Nullable(Of Point) = Nothing
Private Sub pictureBox1_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles PictureBox1.MouseDown
_Previous = e.Location
PictureBox1_MouseMove(sender, e)
End Sub
Private Sub PictureBox1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseUp
_Previous = Nothing
End Sub
Any help would benefit me.