Magick++ STL CompositeImage

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
eadorean
Posts: 7
Joined: 2013-02-08T13:46:47-07:00
Authentication code: 6789

Magick++ STL CompositeImage

Post by eadorean »

Hello,

I know that it is possible to composite single page image over each page of a multi-page image (PDF, Tiff, or whatever multipage format) with something like:

Code: Select all

Image imgx;
imgx.read("somewhere/some-single-page.pdf");
list<Image> imageList2;
readImages( &imageList2, "somewhere/some-multi-page.pdf");
for_each(imageList2.begin(), imageList2.end(), Magick::compositeImage(imgx, CenterGravity, MultiplyCompositeOp));
But that is not what I want.
I want to composite 2 multipage (equal page number) documents, compositing page nr. 1 of document 1 with page number 1 of document 2, page nr. 2 of document 1 with page number 2 of document 2, and so on with all the pages.

How can I do that?

Thanks in advance!
Post Reply