Solved

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

Posted on 2006-07-06
4
458 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

739 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