C++ API regarding..

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
bheadlim

C++ API regarding..

Post by bheadlim »

Magick::Image master("building.jpg");
Magick::Image third = master;
third = DistortImage(third, MagickLib::PerspectiveDistortion, 16, arg, MagickLib::MagickTrue, &exceptionInfo );

error: cannot convert ‘Magick::Image’ to ‘MagickLib::Image*’ for argument ‘1’ to ‘MagickLib::Image*MagickLib::DistortImage(MagickLib::Image*, MagickLib::DistortImageMethod, long unsigned int, const double*, MagickLib::MagickBooleanType, MagickLib::ExceptionInfo*)’

May i know how to 'convert' a Magick::Image to MagickLib::Image?
Post Reply