Page 1 of 1

How to convert from ‘Magick::Image’ to ‘MagickLib::MagickWan

Posted: 2007-07-21T03:22:46-07:00
by carllos
Hi,

I'm starting to develop in C++ using Magick++, but frequently run across methods that are not implemented in Magick++ as well as in the C interface. Is there any way to convert 'on the go' from the ‘Magick::Image’ to ‘MagickLib::MagickWand’ and vice versa?

I know, that I could just write program using the C api, but Magick++ is very handy with the STL support and I would hate to lose that. I will be very grateful for a hint how to get past this problem.

Karol

Re: How to convert from ‘Magick::Image’ to ‘MagickLib::MagickWan

Posted: 2007-07-21T06:39:45-07:00
by magick
You can access any C interface simply by prefixing the method name with MagickLib:: (e.g. MagickLib::ResizeImage()).

Re: How to convert from ‘Magick::Image’ to ‘MagickLib::MagickWan

Posted: 2007-07-22T09:13:01-07:00
by carllos
I am aware of that. I was just wandering is there a way to use Magick++ methods on a MagickWand or MagickWand functions on a Magick::Image (o simple conversion on the fly, direct casts do not work).

But I got past this problem by rewriting the code to C, a little troublesome, but got a chance to see if I still remember how to use some very basic stuff 8)

Even so, if you may, please answer the question, it may be useful for the future.

Karol

PS. ImageMagick is truly great :D