i use the function MergeImageLayers() to merge the image layers.
Under Windows the following example works fine, but on linux I only get an image with a white background where the file size is about the half of the file size which is created under windows.
Code: Select all
Image *loadedImage = ReadImages(imageInfo, inFilename, exception);
SetImageOption(imageInfo, "background", "White");
Image *newMergedImage = MergeImageLayers(loadedImage, CompositeLayer, exception);
DestroyImage(loadedImage);
loadedImage= newMergedImage;
WriteImages(imageInfo, loadedImage, outFilename, exception);
Regards