This project is read-only.

background color when transforming from svg to jpeg

Dec 26, 2015 at 6:36 PM
I have take some svg from:

and used these lines:

const string inputPath = "D:\fractal.svg";
const string exportPath = "d:\fractal.jpeg";
var sampleDoc = SvgDocument.Open(inputPath);
sampleDoc.Draw().Save(exportPath, ImageFormat.Jpeg);

to transform the svg to a jpeg. This works fine but unfortunately, the background color is black rather than white as in the original svg. Is there anything I can do to overcome this issue? Thanks.
Oct 18 at 2:03 PM
I have an image with color background, when I try to convert the image to png the background is transparent.