which library gives access to GetImagePixels function

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ctyszkiewicz
Posts: 4
Joined: 2010-11-18T14:55:19-07:00
Authentication code: 8675308

which library gives access to GetImagePixels function

Post by ctyszkiewicz »

Hello

I want to wrapp the C++ function which calls the GetImagePixels function declared in magick/image.h . I think that I need the name of shared library through which this function is accessed. If you know the name of this library please let me know.

Best regards

Cuma
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: which library gives access to GetImagePixels function

Post by anthony »

-lMagick I believe.

See the IM web site.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
ctyszkiewicz
Posts: 4
Joined: 2010-11-18T14:55:19-07:00
Authentication code: 8675308

Re: which library gives access to GetImagePixels function

Post by ctyszkiewicz »

I can't find the file lMagick.so

I searched through the all .so files I could find:

The files were gathered in following directories:

/usr/lib/ImageMagick-6.3.7/modules-Q16/filters/
/usr/lib/ImageMagick-6.3.7/modules-Q16/coders/

Asking for the GetImagePixels gives no positive answer:
nm - Ca *.so for each file gives the same response
for example:
nm: /usr/lib/ImageMagick-6.3.7/modules-Q16/filters/analyze.so: no symbols

The compiled demo program which uses the GetImagePixels function works well therefore it must be within some shared library, but where.

Best regardas

Cuma
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: which library gives access to GetImagePixels function

Post by anthony »

That was -lMagick Which is a compile time option to use the library libMagick.so

However on my system it is libMagickCore.so.4

I think we may be being a little to low level and specific. I suggest you have a look at the 'demos' folder and the commands in the Makefile of the IM source.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply