Page 1 of 1

Count image sequences in wand

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

Posted: 2007-01-08T08:22:22-07:00
by magick
MagickGetNumberImages() returns the number of images in a wand container.

Thank you!

Posted: 2007-01-08T11:19:04-07:00
by mikko
Heh, and I tough I read trough the docs multiple times :)

Thanks for quick answer!

Posted: 2007-01-11T13:05:30-07:00
by *void
So many functions (534 in MagickWand DLL)...
So little...

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