Board index » cppbuilder » JPEG->BMP Run time conversion?

JPEG->BMP Run time conversion?

How Can I load (in run time and using Builder4) *.jpg images and convert
them in bmp?

Thank you.

 

Re:JPEG->BMP Run time conversion?


BCB4 comes with a TJPEGImage class to load jpg files.  Just Assign() it to a
TBitmap, and call SaveToFile(), something like this:

#include <jpeg.hpp>

TJPEGImage *jpg = new TJPEGImage;
Graphics::TBitmap *bmp = new Graphics::TBitmap;

jpg->LoadFromFile("some.jpg");
bmp->Assign(jpg);
bmp->SaveToFile("some.bmp");
delete bmp;
delete jpg;

Gambit

Quote
Mauro Chimenti <c...@ftbcc.it> wrote in message

news:390F04A6.A6AE5900@ftbcc.it...
Quote
> How Can I load (in run time and using Builder4) *.jpg images and convert
> them in bmp?

Other Threads