Solved

i want to read an .jpg file in an c program

Posted on 2006-07-06
4
459 Views
Last Modified: 2010-04-15
Hi,

i want to read an jpg file pixel for pixel with an c program.
which functions do i have to use?
how is the data orderd in an jpg file?
i program in the last time often under Delphi, there i use a a canvas to show things.

Thanks for help
0
Comment
Question by:Applicationmaker
[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
  • 2
4 Comments
 
LVL 45

Assisted Solution

by:Kent Olsen
Kent Olsen earned 150 total points
ID: 17052266

Hi Appmaker,

If you'll "upgrade" to C++ this will be a lot easier.  There are a number of C++ classes that handle jpeg data and will be a LOT easier to use that building your own from the ground up in C.

Post to the C++ or Borland C++ Builder group.
Kent
0
 
LVL 5

Assisted Solution

by:bastibartel
bastibartel earned 100 total points
ID: 17052284
FreeImage - FreeImage is an Open Source library for loading and saving image formats.
http://freeimage.sourceforge.net/

The way to go.
I'll supply sample code if you want.

Sebastian
0
 

Author Comment

by:Applicationmaker
ID: 17052376
ok i only can use c or Delphi
if its to hard to program it in c then i want to try in delphi
0
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 150 total points
ID: 17052400

If you need to write it in C, Sebastian's suggestion to use the sourceforge code is a good one.

If you're comfortable in Delphi you should think seriously about that.  Delphi has all of the appropriate objects in it to do what you want.  The entire Borland C++ graphics library is written in Delphi.

Kent

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

626 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