예제 #1
0
파일: Paint.cs 프로젝트: borkaborka/gmit
 /// <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);
 }
예제 #2
0
파일: Paint.cs 프로젝트: borkaborka/gmit
 /// <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;
 }