coder777: then can you tell me what I must do, to include Image library in my project? #include <image.h>
or #include <image>
is fatal error. Do I must include some .lib file? I did not found it on the link.
Finally I have found some good answer http://stackoverflow.com/questions/694080/how-do-i-read-jpeg-and-png-pixels-in-c-on-linux
but I am surprised. When I open the lib png project, the file png.h is not class. They don't use namespace or classes to access the libpng. That looks kind of weird to me. What if I want to build program (dll library) which should use the libpng library. Will not be that problem that they don't use class?
Edit:
libpng does not use classes or namespace and has dependency on zlib.
Yes, those libraries exist. I'd say that ImageMagick do use them too. In any case you need to install the library and set up your project so that you can use the header and libs.
Will not be that problem that they don't use class?
No, in opposite: C++ classes are due to name mangling bound a certain compiler.
c functions can be used even from other languages.
What if I want to build program (dll library)
In case of dll you must be careful with memory. You must not free memory that is allocated within the dll and vice versa