The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Hello guys i'm new with MagickWand and i was trying to make a spritesheet using the command MagickMontageImage in C. I have 5 sprites in format .PNG that already has transparent background, but after the montage i obtain a spritesheet with a white background. Using bash i dont have this problem, but i want the same result coding in C. I tried set image background, and replace the white color with transparent but i dont obtain the same result as the bash way that is more popular. Here's the code, the sprites and the spritesheet give as result with the wrong background. I hope you can help me cause this is blowing my mind. Thank you!
PixelWand *pxl = NewPixelWand();
PixelSetColor(pxl, 'transparent') // i tried with 'none' also
wand = MagickMontageImage(wand, d_wand, "5x1+0+0", "64x64+0+0", ConcatenateMode, "0x0+0+0");
MagickSetImageBackgroundColor(wand, pxl);
But i obtain the same result. I tried to activate the alpha channel but i obtain a full transparent spritesheet with no sprite on it. With the command line works perfectly but i need this coded in C, im trying to not use the terminal.
background is still white, even though, i changed to pink. I think the problem is in MagickReadImage. when it reads the image, change from transparent to white