Save Pictures as "JPG" & not "BMP" !!!

Posted on 2006-04-30
Medium Priority
Last Modified: 2013-11-19
i am making a project in VB that takes snapshots from a Camera & puts them in a Picture Box ...

then, i am using this code in order to save the picture on my PC :

SavePicture Picture1.Image, App.Path & "\ImageN" & X + 1 & ".BMP"

but the problem with me is that the pictures can only be saved as ".BMP" files, even though i replace the ".BMP" extension, from the end on the code, with the ".JPG" extension (the pictures' size remain the same) !!!

i need a way or a code, that let me save the pictures as ".JPG" (with as low as image size)

i am doing so, because the size of the pictures that are saved is too large for my Application (i need to transfer them through the Modem)

Need ur Comments as fast as possible ;)
Question by:tarik_bizri
1 Comment
LVL 10

Accepted Solution

fostejo earned 225 total points
ID: 16574056

I don't believe this is something that can be done natively from VB - the following link may help though: http://vbaccelerator.com/home/VB/Code/vbMedia/Saving_Pictures_to_JPG/Using_Intel_JPG_Library/article.asp - it discusses the use of a free DLL and also has a sample application to review.



Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
In this tutorial viewers will learn how to create blended and gradiated shapes in Illustrator using the blend tool Draw two shapes, one of them in a different color: Select both and create a blend by going to Object > Blend > Make: Blends can also b…
Not only does Prezi allow you to create non-linear presentations, it also makes it easy to apply transition animations between your frames. Learn how to apply a fade-in transition to select items and entire frames in this tutorial Select "Edit Path"…
Suggested Courses
Course of the Month17 days, 7 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question