Solved

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

Posted on 2006-07-06
4
443 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:Kdo
Kdo earned 150 total points
Comment Utility

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
Comment Utility
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
Comment Utility
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:
Kdo earned 150 total points
Comment Utility

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements 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.

728 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

10 Experts available now in Live!

Get 1:1 Help Now