Solved

Converting BMP to JPEG

Posted on 1998-09-05
6
286 Views
Last Modified: 2013-11-19
How can I convert a BMP into a JPEG from Visual C++ ?
The source is a DIB-Image captured from a video-card and I have to convert it to JPEG-Images. I found a sollution by calling a command-line-converter, but I want to do all the work in my application. There are some web-sites which offer powerfull dll's or active-x but I'm looking for a free tool (doesn't have to be very powerfull - only converting).
0
Comment
Question by:joker1
  • 3
  • 2
6 Comments
 
LVL 6

Accepted Solution

by:
snoegler earned 50 total points
ID: 1172069
A class library can be found on:
www.visualc.com
Look for the 'CImage' class - supports many file types, is free, and can save .jpg files,
but has no option for compression ratio.

Also there is a 'nviewlib.dll' which is also free, and it does offer .jpg saving. You can
also specify the compression ratio in percent, but it has some disadvantages.
The page where i got it from is down, and i don't know where to get it now. But if you like,
i can post it to you via EMail (it is about 300-400 kb with docs).

But if the compression ratio is no argument for you, CImage is much more flexible.
(I think it uses some good quality, medium compression ratio).
Hope this helped :)
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1172070
Can give you a DLL that does that...The code is in Delp(Pascal)...Do you think it can help?

Regards,
Viktor Ivanov
0
 
LVL 6

Expert Comment

by:snoegler
ID: 1172071
I will upload it to http://absd.hypermart.net/media/nviewlib.zip
BTW: You're lucky, nviewlib is basically written for Delphi.
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 6

Expert Comment

by:snoegler
ID: 1172072
It think within the next few hours i am having enough time (its about 500k)
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1172073
Yeah, I;ve seen this one on the net somewhere....It lets you work with JPG files and it's very easy to work with....it includes conversion and stuff like that.....

Regards,
Viktor Ivaov
0
 

Author Comment

by:joker1
ID: 1172074
Sorry for my late answer - I was on holiday :-)

I found several good tools on www.visualc.com.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
It’s easy to embed any of your public Prezi presentations on your website or social network to share with others. Learn how simple it is in this tutorial.

831 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