Code: Select all
images.push_back(Image("1.png"));
images.push_back(Image("2.png"));
images.push_back(Image("3.png"));
for (auto i = images.begin(); i < images.end(); i++)
{
i->label(i->fileName());
i->magick("PSD");
i->backgroundColor("none");
i->colorspaceType(RGBColorspace);
i->alphaChannel(ActivateAlphaChannel);
i->mergeLayers(MosaicLayer);
}
writeImages(images.begin(), images.end(), "out.psd", true);
If I use modify to writeImages(images.begin(), images.begin()+1, "out.psd", true); "1.png" is not missing.