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 :-
how can i mod it so it save's to a certain size? any help would be greatly apreciatedCode:Try If pic1 = True Then PictureBox1.Image.Save(FilePic1) Else PictureBox1.Refresh() End If Catch ex As NullReferenceException Catch ex As Exception End Try![]()




Reply With Quote