Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1372
  • Last Modified:

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
0
rainette
Asked:
rainette
1 Solution
 
DrDelphiCommented:
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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now