Board index » cppbuilder » How to load a jpg image?

How to load a jpg image?


2003-10-09 10:06:00 AM
cppbuilder20
Please tell me how to load a jpg image?
 
 

Re:How to load a jpg image?

"wongs" < XXXX@XXXXX.COM >wrote in message
Quote
Please tell me how to load a jpg image?
The VCL has a TJPEGImage class for that purpose. Simply #include "jpeg.hpp"
and then create a TJPEGImage instance when needed. Despite its name,
TJPEGImage is not a component, it is a standalone parser class, like
TBitmap. TJPEGImage integrates with TPicture so that TImage,
TOpenPictureDialog, and TSavePictureDialog can natively display jpg images.
Gambit
 

Re:How to load a jpg image?

"Remy Lebeau \(TeamB\)" < XXXX@XXXXX.COM >wrote:
Quote
The VCL has a TJPEGImage class for that purpose. Simply #include "jpeg.hpp"
Thank you very much.
Can it run with Builder 1.0 ?
 

{smallsort}

Re:How to load a jpg image?

"wongs" < XXXX@XXXXX.COM >wrote in message
Quote
Thank you very much.
Can it run with Builder 1.0 ?
As far as I know, no. TJPEGImage is included in BCB4-6, but a separate
download is needed for BCB3. I doubt BCB1 is supported at all, sorry.
There is certainly no download available for it, at least. You'll have to
find another pre-made solution, or else just implement the jpg format
manually yourself from scratch. The specs for the data format are readily
available online.
Gambit