I want to save the contents of a PictureBox which has had lines drawn on it etc. I want the user to save the image that is there. I have tried the following code:
---- Start of Code ----
Private Sub btnSavePicture_Click()
Dim sFile As String
.DialogTitle = "Save Image As..."
.CancelError = False
.Filter = "Windows Bitmap Image (*.bmp)|*.bmp"
If Len(.FileName) = 0 Then
sFile = .FileName
SavePicture picView.Image, sFile
sbStatusBar.SimpleText = "Picture saved to " & sFile
---- End of Code ----
This saves a blank image for some reason, with the correct size 8-(
I hope you can help.
P.S. When I minize and then restore, the image dissapears. I have a sub routine that draws the image, so could i set it to redraw on restoring of the window.