| | | Forum Newbie
       
Group: Forum Members Last Login: 12/29/2008 10:26:29 AM Posts: 6, Visits: 10 |
| am making an image viewer where the user can import an image from computer resize, rotate, and / or add effects. so far i can open the image through open dialog change the size and view the new size but when i save the image using the save dialog it saves the old image not the new image.
here is my menu item save code
Dim newpbwidth As Integer
Dim newpbheight As Integer
If SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
newpbwidth = PBDisplay.Width
newpbheight = PBDisplay.Height
PBDisplay.SizeMode = PictureBoxSizeMode.StretchImage
PBDisplay.ClientSize = New Size(newpbwidth, newpbheight)
newimg = PBDisplay.Image
newimg.Save(SaveFileDialog1.FileName)
End If
can anyone help
Gerry |
| |
|
|