示例#1
0
 public Mask(
     bool inverted,
     string name,
     Animatable <PathGeometry> points,
     Animatable <Opacity> opacity,
     MaskMode mode
     )
 {
     Inverted = inverted;
     Name     = name;
     Points   = points;
     Opacity  = opacity;
     Mode     = mode;
 }
示例#2
0
 public LinearGradientStroke(
     string name,
     string matchName,
     Animatable <double> opacityPercent,
     Animatable <double> strokeWidth,
     LineCapType capType,
     LineJoinType joinType,
     double miterLimit)
     : base(name, matchName)
 {
     OpacityPercent = opacityPercent;
     StrokeWidth    = strokeWidth;
     CapType        = capType;
     JoinType       = joinType;
     MiterLimit     = miterLimit;
 }
示例#3
0
 public GaussianBlurEffect(
     string name,
     bool isEnabled,
     Animatable <double> blurriness,
     Animatable <Enum <BlurDimension> > blurDimensions,
     Animatable <bool> repeatEdgePixels,
     bool?forceGpuRendering)
     : base(
         name,
         isEnabled)
 {
     Blurriness        = blurriness;
     BlurDimensions    = blurDimensions;
     RepeatEdgePixels  = repeatEdgePixels;
     ForceGpuRendering = forceGpuRendering;
 }
示例#4
0
 public DropShadowEffect(
     string name,
     bool isEnabled,
     Animatable <Color> color,
     Animatable <Rotation> direction,
     Animatable <double> distance,
     Animatable <bool> isShadowOnly,
     Animatable <Opacity> opacity,
     Animatable <double> softness)
     : base(
         name,
         isEnabled)
 {
     Direction    = direction;
     Color        = color;
     Distance     = distance;
     IsShadowOnly = isShadowOnly;
     Opacity      = opacity;
     Softness     = softness;
 }
示例#5
0
 public SolidColorStroke(
     string name,
     string matchName,
     Animatable <double> dashOffset,
     IEnumerable <double> dashPattern,
     Animatable <Color> color,
     Animatable <double> opacityPercent,
     Animatable <double> thickness,
     LineCapType capType,
     LineJoinType joinType,
     double miterLimit)
     : base(name, matchName)
 {
     DashOffset     = dashOffset;
     _dashPattern   = dashPattern.ToArray();
     Color          = color;
     OpacityPercent = opacityPercent;
     Thickness      = thickness;
     CapType        = capType;
     JoinType       = joinType;
     MiterLimit     = miterLimit;
 }