This project is read-only.

svgDocument.Draw() exception


Hi all. I have issue with saving svg to png.
My code:
1. XmlDocument xml = new XmlDocument();
2. xml.LoadXml(svgText);
3. SvgDocument svgDocument = SvgDocument.Open(xml);

4. Bitmap bitmap = svgDocument.Draw();

5. bitmap.Save(currentSettings.OutputFilePath, ImageFormat.Png);
svgText is svg from telerik rad chart.
but in line 4 I have exception:
ColorBlend object that was set is not valid.Position's last element must be equal to 1.0. ColorBlend objects must be constructed with the same number of positions and color values. Positions must be between 0.0 and 1.0, 1.0 indicating the last element in the array.
Please, help me to resolve this issue.