Board index » cppbuilder » save bmp as gif and/or jpg

save bmp as gif and/or jpg

Hello,

Is it possible to convert a bmp to a gif and/or jpg file directly from
within BCB5 Pro?

Bob

 

Re:save bmp as gif and/or jpg


Quote
leslie bortels wrote:

> Hello,

> Is it possible to convert a bmp to a gif and/or jpg file directly from
> within BCB5 Pro?

There should be a TJPEGImage class that will let you read/write jpeg files.
Try including <vcl\jpeg.hpp> and dynamically creating a TJPEGImage object.
It descends from Graphics::TGraphic, so you should be able to assign to/from
any other Graphics::TGraphic descendant - TBitmap, etc.

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"

Other Threads