Count image sequences in wand

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
mikko

Count image sequences in wand

Post by mikko »

What is the easiest way to count image sequences in magick wand? I had a variable with numImages and I added one to it every time I read an image.

But for example reading multi-page PDF adds multiple sequences so it messes up. Currently I am moving the pointer to last sequence, read the position and return the pointer back. Is there an easier way?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

MagickGetNumberImages() returns the number of images in a wand container.
mikko

Thank you!

Post by mikko »

Heh, and I tough I read trough the docs multiple times :)

Thanks for quick answer!
*void

Post by *void »

So many functions (534 in MagickWand DLL)...
So little...

...memory (and I don't mean my computer). :wink:
Post Reply