Hi,

I'm using the MagickWand C API to read image data from file, basically
by doing the followin:

image->wand = NewMagickWand();
MagickReadImage(image->wand, fname);
MagickGetImagePixels(image->wand, 0, 0, image->w, image->h, 
        "BGRA", CharPixel, image->surf->pixels);

I'm doing this for PNG and SVG images, both with transparancy / alpha
channel. The alpha channel is loaded fine for PNG format, but SVG files
always end up with a opaque white background.

I've been trying to avoid this using MagickSetImageBackgroundColor()
before doing the MagickGetImagePixels(), but to no avail.

What would be the proper method to load .SVG images with proper alpha /
transparancy handling ?

Thank you very much,

Ico

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to