better svg coloring
This commit is contained in:
@@ -13,6 +13,11 @@ public static class RadSvgImageExtensions
|
||||
public static void ApplyColor(this RadSvgImage svg, Color color)
|
||||
{
|
||||
svg.Document.Fill = new SvgColourServer(color);
|
||||
svg.Document.ApplyRecursive(e =>
|
||||
{
|
||||
e.Fill = new SvgColourServer(color);
|
||||
e.Stroke = new SvgColourServer(color);
|
||||
});
|
||||
svg.ClearCache();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user