-
I have an image captured in a picturebox. I have been using the saveimage function to export it to a file. However the files sizes are getting way to big for what I need them for. Is there a way to export an image contained in a picture box or any other control for that matter as a jpeg?
-
you could save the jpeg to the directory where your program is,
then load it into the other control, then delete it
Code:
Private Sub Command1_Click()
SavePicture Picture1.Picture, "C:\windows\desktop\hello.jpg"
Picture2.Picture = Picture1.Picture
Picture1.Picture = Nothing
Kill "C:\windows\desktop\hello.jpg"
End Sub
of course, there was already a picture loaded in picture1
I hope this helps.
-
alright...!!!!
John fixed the [ code ] coloring... :)