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 » 2007-01-08T04:24:02-07:00

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: 10922
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2007-01-08T08:22:22-07:00

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

mikko

Thank you!

Post by mikko » 2007-01-08T11:19:04-07:00

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

Thanks for quick answer!

*void

Post by *void » 2007-01-11T13:05:30-07:00

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

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

Post Reply