Now I am doing paint application but the problem that i had is when i open an image to my picture box and i choose to draw on it or use other tools in my paint its didn't show but the strange thing is when i save the drawing shows on the image..
and this my code for open:
and this my code for open:
Code:
Private Sub OpenToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles OpenToolStripMenuItem.Click
Panel2.Enabled = True
PictureBox.BackColor = Color.White
Dim open As New OpenFileDialog()
open.Filter = "Image Files(*.png; *.jpg; *.bmp)|*.png; *.jpg; *.bmp"
bmpPic = New Bitmap(PictureBox.Width, PictureBox.Height)
If open.ShowDialog() = DialogResult.OK Then
Dim fileName As String = System.IO.Path.GetFullPath(open.FileName)
PictureBox.Image = New Bitmap(open.FileName)
PictureBox.SizeMode = PictureBoxSizeMode.StretchImage
G = System.Drawing.Graphics.FromImage(bmpPic)
PictureBox.DrawToBitmap(bmpPic, PictureBox.ClientRectangle)
End If
End Sub