Link to home
Start Free TrialLog in
Avatar of chual
chual

asked on

Tranforming bmp to jpg file without using dll

I want to transform a bmp to jpg file without having to use a dll (static linked library is ok). Does any one know where I can find some info about it?
Avatar of jkr
jkr
Flag of Germany image

Paintlib is a great library for that - see http://www.paintlib.de/paintlib/
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chual
chual

ASKER

Thanks jkr. It looks great. But have you happend to use it before? I am still having problem using it. At present time, I have problem at at least two places. One place is at jpeg_CreateCompress in "jcapimin.c" where the last parameter "structsize" always report wrong size - 344, while it is supposed to be 360. The other place is at "jpeg_write_scanlines". It is so weird that the data member of the first parameter "cinfo", eg. next_scanline never get updated in the calling routine (in jpegFile.cpp, as a result cinfo.next_scanline always stay zero) but does get updated inside the called routine. When I debugged it I can see that the next_scanline is get incremented from the last call inside the "jpeg_write_scanlines" routine. Do you have any idea why? Thank you.

chual