Solved

JPEG images  exploring in C++ Builder v5

Posted on 2002-06-26
1
1,369 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …

724 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