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
Solved

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

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

829 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