예제 #1
0
 /// <summary>
 /// Returns a copy of this style where all parameters are scaled by a
 /// given factor
 /// </summary>
 /// <param name="scaleFactor">Scale factor</param>
 /// <returns>A copy of this object with updated parameters</returns>
 public RasterizeStyle Scale(float scaleFactor)
 {
     return(new RasterizeStyle {
         Foreground = Foreground.Scale(scaleFactor),
         InnerGlow = InnerGlow.Scale(scaleFactor),
         OuterGlow = OuterGlow.Scale(scaleFactor),
         Background = Background.Scale(scaleFactor),
     });
 }
예제 #2
0
 /// <summary>
 /// Returns an exact copy of this style
 /// </summary>
 /// <returns></returns>
 public RasterizeStyleDefinition Copy()
 {
     return(new RasterizeStyleDefinition {
         SegmentWeight = SegmentWeight,
         SkewAngle = SkewAngle,
         BackgroundColor = new SKColor(BackgroundColor.Red, BackgroundColor.Green, BackgroundColor.Blue, BackgroundColor.Alpha),
         Foreground = Foreground.Copy(),
         InnerGlow = InnerGlow.Copy(),
         OuterGlow = OuterGlow.Copy(),
         Background = Background.Copy()
     });
 }