图片框绘图图像

Picture box drawing image

我有一个问题。 Picture box的绘图图像是否可以保存?

因为我有一个系统,用户可以使用手写板或鼠标在图片框中签名。然后用户可以将这张图片保存为自己的签名。

这是我的输出。只是图片框内的油漆:

是否可以将此绘图图像保存为 jpeg?如果是那么怎么办?

感谢您的帮助。

这就是我将图片框中的颜料保存为图像的方式,但在 .png 文件扩展名中。

Private Sub ts_btnSave_Click(sender As Object, e As EventArgs) Handles ts_btnSave.Click
    If Detector = 0 Then 'Detectore here is a variable where an identifier to inform me if the user paint something in picturebox or not.
        MessageBox.Show("No Signature Found", "Failed", MessageBoxButtons.OK, MessageBoxIcon.Error)
    Else
        If MessageBox.Show("Are you sure you want to save?", "Save", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) = vbYes Then
            Dim bmp As New Bitmap(PictureBox1.Width, PictureBox1.Height)
            PictureBox1.DrawToBitmap(bmp, New Rectangle(0, 0, PictureBox1.Width, PictureBox1.Height))
            bmp.Save("D:Images\Filename.png", Imaging.ImageFormat.Png) 'File name must be flexible so that it will not replace the old image.
            bmp.Dispose()
            Me.Dispose()
        End If
    End If
End Sub

@jmcilhinney致以最诚挚的问候