• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • Last Modified:

Converting BMP to JPEG

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
joker1
Asked:
joker1
  • 3
  • 2
1 Solution
 
snoeglerCommented:
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
 
viktornetCommented:
Can give you a DLL that does that...The code is in Delp(Pascal)...Do you think it can help?

Regards,
Viktor Ivanov
0
 
snoeglerCommented:
I will upload it to http://absd.hypermart.net/media/nviewlib.zip
BTW: You're lucky, nviewlib is basically written for Delphi.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
snoeglerCommented:
It think within the next few hours i am having enough time (its about 500k)
0
 
viktornetCommented:
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
 
joker1Author Commented:
Sorry for my late answer - I was on holiday :-)

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now