?
Solved

JPEG images  exploring in C++ Builder v5

Posted on 2002-06-26
1
Medium Priority
?
1,370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
DrDelphi earned 400 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 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