Commit 7fb9941a authored by Tebjan Halm's avatar Tebjan Halm
Browse files

none paint server renders as Transparent now. regarding issue #31

parent 391de872
......@@ -32,6 +32,9 @@ namespace Svg
public override Brush GetBrush(SvgVisualElement styleOwner, float opacity)
{
//is none?
if (this == SvgPaintServer.None) return new SolidBrush(Color.Transparent);
int alpha = (int)((opacity * (this.Colour.A/255.0f) ) * 255);
Color colour = Color.FromArgb(alpha, this.Colour);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment