• Advertisement
Sign in to follow this  

c++ libraries/pictures [solved]

This topic is 4305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi i need c/c++ libraries/functions that help me with loading pictures in arrays. preferrably with multiple image formats (jpeg, bmp, png and the like). help is much appreciated [Edited by - back2newbelf on May 8, 2006 2:32:49 PM]

Share this post


Link to post
Share on other sites
Advertisement
I can only suggest that you look into one of the main graphics APIs, namely DirectX, Opengl and SDL. SDL will prolly be the most suitable here.

What do you want to do with these pictures in this array, this may be the most important point.

Dave

Share this post


Link to post
Share on other sites
i don't have to display the pictures, i only have to analyze the colors of each pixel. putting the color data in an array i can do by myself, it's just that each image format is formatted in a different way (i guess), and i thought there would be libraries that help reading out the color data

Share this post


Link to post
Share on other sites
What do you want to do with those images?

If you want only to load images there are libraries for various formats, such as libpng and libjpeg. Then are libraries that open different formats, such as DevIL (http://openil.sf.net).

If you want to draw the images on screen, you should look into the graphics library you're using.

What do you mean by loading the images into an array? To have the image color data in an array or multiple images in an array?

-Riku


Share this post


Link to post
Share on other sites
Quote:
Original post by RichardoX
What do you want to do with those images?

analyze for dominant color and maybe patterns, no display (yet)
Quote:

What do you mean by loading the images into an array? To have the image color data in an array or multiple images in an array?

the former

i'll look into devil now..

Share this post


Link to post
Share on other sites
trying to work with Devil now but when i set things up like the Devil documentation tells me to, which is:

"1. Navigate to the Project menu and choose Settings.
2. Click the C/C++ tab.
3. Change the Category drop-down menu to read Code Generation.
4 Developer’s Image Library Manual
4. Change the Use run-time library drop-down menu to Multithreaded DLL if the
Settings For menu says Win32 Release. Change the Use run-time library drop-down
menu to Debug Multithreaded DLL if the Settings For menu says Win32 Debug."

i get

nafxcwd.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc

i code with VS6

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement