Hello,

I convert Magick++ single page Image to QT image (QPixmap, actually, but could be QImage as well) with:

Qt Code:
  1. Blob my_blob_1;
  2. Image img1;
  3. img1.magick("MNG"); // or PNG
  4. img1.write(&my_blob_1);
  5. const QByteArray imageData1((char*)(my_blob_1.data()),my_blob_1.length());
  6. item1p.loadFromData(imageData1);
  7. item1 = Scene->addPixmap(QPixmap(item1p));
To copy to clipboard, switch view to plain text mode 

where:
Qt Code:
  1. QPixmap item1p;
To copy to clipboard, switch view to plain text mode 

My question is: how could I do that with multi page Image?
Below, I have a multipage image in a vector, I manipulate it with STL algorithms, but I can not find a way to output it to QT Image.
Magick++ writes it out to a single blob.
I would need to write to separate blobs for each page. Do I, or is there other way?
vector<Image> to QVector<QImage>

Qt Code:
  1. Blob my_blob_111;
  2. vector<Image> imageListmpp;
  3. writeImages( imageListmpp.begin(), imageListmpp.end(), &my_blob_111 );
  4. Image aaa;
  5. aaa.read(my_blob_111);
  6. aaa.write( "D:/test/aaa.pdf" );
To copy to clipboard, switch view to plain text mode 

I welcome any suggestion.

Thanks!