Page 1 of 1

New Functions for MagickWand?

Posted: 2012-03-17T06:06:16-07:00
by anthony
Question is their some way of extracting, or cloning a single image from a MagickWand with a multiple image list? I can't seem to find it!

There seems to be a need to map the various Image List operations into MagickWand. Things like -delete -clone -duplicate -swap -insert. The -delete being different to the MagickRemoveImage() function as it can delete ranges of images, or even all the images in a image list.

Though I suppose MagickAddImages() can handle -insert even though it 'inserts' images after the current image, rather than before a specific image index.

Perhaps we need to implement a MagickInsertImages() function to 'complete' the job.

What do you see as missing from MagickWand?

Re: New Functions for MagickWand?

Posted: 2012-03-17T07:43:12-07:00
by el_supremo
I assume you can create a new wand, set the iterator in the source wand to the required index and then use MagickGetImage.

Code: Select all

tw = NewMagickWand();
tw = MagickGetImage(mw);

Re: New Functions for MagickWand?

Posted: 2012-03-18T17:12:42-07:00
by anthony
Thanks. I figured there was something, just didn't know what that was.