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?
New Functions for MagickWand?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
New Functions for MagickWand?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: New Functions for MagickWand?
I assume you can create a new wand, set the iterator in the source wand to the required index and then use MagickGetImage.
Pete
Code: Select all
tw = NewMagickWand();
MagickSetIteratorIndex(mw,i);
tw = MagickGetImage(mw);
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
See my message in this topic for a link to a zip of all the files.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: New Functions for MagickWand?
Thanks. I figured there was something, just didn't know what that was.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/