Jpeg resize upon saving ?
Hi
I have a form in which a image(a jpeg) is loaded into a picturebox using opendialog, this loads the picture into the picturebox fine i have set the picturebox property to stretch the image to fit which is fine also.
The problem is when i save the image in that picturebox it saves the image to the same dimensions of what it was loaded in at. But when the user presses a button on the form i want the image to be saved as 185x105.
How can i do this? the code i am using at the moment is simple :-
Code:
Try
If pic1 = True Then
PictureBox1.Image.Save(FilePic1)
Else
PictureBox1.Refresh()
End If
Catch ex As NullReferenceException
Catch ex As Exception
End Try
how can i mod it so it save's to a certain size? any help would be greatly apreciated :)
Re: Jpeg resize upon saving ?
Put your image in a bitmap object. Using the bitmap object you can alter the picture in many ways, and even save it in different formats.