JPEG images exploring in C++ Builder v5

How can I create a DIB structure from a TJPEGImage object after reading a JPEG file by TJPEGImage->LoadFromFile ? I use C++ Builder v 6
rainetteAsked:
Who is Participating?
 
DrDelphiConnect With a Mentor Commented:
Use the VCL's TBitmap:

Example:
{
 Graphics::TBitmap *bmp=new Graphics::TBitmap;
 bmp->HandleType= bmDIB;
 bmp->Assign(jpg);
 bmp->SaveToFile('Tada.bmp');
 delete bmp;
}



Good luck!!

 
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.