background color when transforming from svg to jpeg

Dec 26, 2015 at 5: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.