Esempio n. 1
0
 /// <summary>Creates a frozen <see cref="Paint"/> instance from the given parameters.</summary>
 public static Paint CreateFrozen(Paint paint, double strokeThickness) {
    if (paint == null) return null;
    return Paint.CreateFrozen(paint.Fill, paint.Stroke, strokeThickness);
 }
Esempio n. 2
0
 /// <summary>Creates a frozen <see cref="Paint"/> instance from the given parameters.</summary>
 public static Paint CreateFrozen(Brush fill, Brush stroke, double strokeThickness, Pen strokeFeatures) {
    var paint = new Paint {
       Fill = fill,
       Stroke = stroke,
       StrokeThickness = strokeThickness,
       StrokeFeatures = strokeFeatures
    };
    paint.Freeze();
    return paint;
 }