Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 479
  • Last Modified:

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

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
Applicationmaker
Asked:
Applicationmaker
  • 2
3 Solutions
 
Kent OlsenData Warehouse Architect / DBACommented:

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
 
bastibartelCommented:
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
 
ApplicationmakerAuthor Commented:
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
 
Kent OlsenData Warehouse Architect / DBACommented:

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!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now