Solved

JPEG images  exploring in C++ Builder v5

Posted on 2002-06-26
1
1,364 Views
Last Modified: 2013-11-19
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
Comment
Question by:rainette
1 Comment
 
LVL 6

Accepted Solution

by:
DrDelphi earned 100 total points
ID: 7111967
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C++ get user from AD  (VS6) 7 55
Compile GLUT with Visual Studio 2015 1 108
How to gracefully close the c++ 11 thread? 3 83
How to convert MFC::CString to UTF8 wchar_t* 10 142
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now