|
-
July 19th, 2006, 05:34 AM
#1
[RESOLVED] Problem with savefiledialog
Hi,
When I save my picturebox no matter what the background colour is, it gets set to black. Does anyone know why it is doing this?
Here is the saving code:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim saveFileDialog1 As New SaveFileDialog()
saveFileDialog1.Filter = "JPeg Image|*.jpg"
saveFileDialog1.Title = "Save an Image File"
saveFileDialog1.ShowDialog()
If saveFileDialog1.FileName <> "" Then
Dim fs As System.IO.FileStream = CType _
(saveFileDialog1.OpenFile(), System.IO.FileStream)
Select Case saveFileDialog1.FilterIndex
Case 1
Me.PictureBox1.Image.Save(fs, _
System.Drawing.Imaging.ImageFormat.Jpeg)
End Select
fs.Close()
End If
End Sub
The rest of this of the code is basically just comboboxes and a little reset code.
Thanks in Advance
Last edited by Splatch; July 20th, 2006 at 08:31 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|