Reputation: 121
I have a Windows C++ program which receives and saves bitmap files (*.bmp). My customer would like the bitmaps saved as JPEG files instead. This looks very simple in Visual Studio 2008, but I'm stuck with Visual Studio 6.0 (my employer will upgrade one of these days, but not today). Is there a simple way to do the conversion in VC++6.0, or do I need an external utility program? I do not have the resources (i.e. time) to "roll my own".
Upvotes: 1
Views: 2543
Reputation: 490583
The obvious choice would be to use GDI+ or a library such as IJG's. MSDN shows a GDI+ sample that demonstrates writing a PNG file. Converting it to produce a JPEG file is just a matter of selecting a different encoder.
Upvotes: 2
Reputation: 994371
An easy way to do this would be to use the ImageMagick library. You can either use the command line tools, or integrate the library directly into your program using the Magick++ API.
Upvotes: 0