예제 #1
0
 public void SetStyleFromSvg(SvgBasicShape svg)
 {
     Stroke      = svg.Stroke;
     StrokeWidth = ParseSize(svg.StrokeWidth, Dpi.X);
     Fill        = svg.Fill != Color.Transparent ? svg.Fill : Color.Empty;
 }
예제 #2
0
 public void SetStyleFromSvg(SvgBasicShape svg)
 {
     Stroke      = Color.FromNonPremultiplied(svg.Stroke.R, svg.Stroke.G, svg.Stroke.B, svg.Stroke.A);
     StrokeWidth = ParseSize(svg.StrokeWidth, Dpi.X);
     Fill        = svg.Fill != System.Drawing.Color.Empty ? new XnaColor(svg.Fill.R, svg.Fill.G, svg.Fill.B, svg.Fill.A) : new XnaColor();
 }