i want to read a raw image file in the format R,G,B

Posted on 2006-07-06
Last Modified: 2010-04-05
i had a grayscale jpg image, and i create with the gimp program a raw image of it.
I want to read this raw image with delphi(and display it).
With methodes do i have to use?
Question by:Applicationmaker
  • 3
  • 2
LVL 12

Assisted Solution

Ivanov_G earned 350 total points
ID: 17053337
Why do you convert it to RAW? You can read the JPEG directly...

Author Comment

ID: 17053500
then please tell me how i can read a jpeg file in delphi
LVL 12

Accepted Solution

Ivanov_G earned 350 total points
ID: 17053610
Drop a TImage component on the form (where the image will be displayed) and use the following code:


procedure TForm1.FormCreate(Sender: TObject);
  jpg : TJPEGImage;
  jpg := TJPEGImage.Create;

Author Comment

ID: 17053737
i get an exception with access violation on adress FFFFFFFC.
i have a paintbox1 with a canvas..
so how can i convert from the jpeg file to the canvas?
I tryed allready Paintbox1.canvas.assign(jpg);
but this assign routine needs a TPersistent Object.


Author Comment

ID: 17054947
i solved the most of the problems by myself..
i used the Paintbox1.canvas.draw routine to get stuff from the jpeg image..


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
Using FastMM4... should I enable MMX option? 9 76
delphi prevent click fast 2 191
How to debug For loops? 3 45
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 57
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

14 Experts available now in Live!

Get 1:1 Help Now