1

Possible Duplicate:
C/C++ Image Loading

I need a C\C++ cross-platform library for loading/displaying images(jpg,gif,png,tga). I will use this library to display images in WinAPi/OpenGL.

Community
  • 1
  • 1
Kanghu
  • 561
  • 1
  • 10
  • 23

3 Answers3

1

You might want to have a look at such libraries as CImg, FreeImage and DevIL. Take your pick. There are plenty more.

Bart
  • 19,692
  • 7
  • 68
  • 77
1

The simplest one (and best, IMO) is stb_image. This is a single C source file that has decoders for JPG, PNG, TGA, BMP and PSD! Read the comments at the top of the file if you want to generate a header file for it.

Miguel Grinberg
  • 65,299
  • 14
  • 133
  • 152
0

ImageMagick(more extensions), OpenCV http://www.imagemagick.org/script/index.php

http://opencv.willowgarage.com/wiki/

Adam
  • 9
  • 1