示例#1
0
 private PaintPath(string @operator, bool closed, bool stroked, bool filled, WindModeEnum?fillMode) : base(@operator)
 {
     this.closed   = closed;
     this.stroked  = stroked;
     this.filled   = filled;
     this.fillMode = (fillMode.HasValue ? fillMode.Value : WindModeEnum.EvenOdd);
 }
 private ModifyClipPath(
     string @operator,
     WindModeEnum clipMode
     ) : base(@operator)
 {
     this.clipMode = clipMode;
 }
示例#3
0
 private ModifyClipPath(
     string operator_,
     WindModeEnum clipMode
     ) : base(operator_)
 {
     this.clipMode = clipMode;
 }
示例#4
0
   private ModifyClipPath(
 string operator_,
 WindModeEnum clipMode
 )
       : base(operator_)
   {
       this.clipMode = clipMode;
   }
示例#5
0
        /**
         * <summary>Converts this constant into its equivalent GDI+ code.</summary>
         */
        public static SKPathFillType ToSkia(this WindModeEnum windMode)
        {
            switch (windMode)
            {
            case WindModeEnum.EvenOdd:
                return(SKPathFillType.EvenOdd);

            case WindModeEnum.NonZero:
                return(SKPathFillType.Winding);

            default:
                throw new NotSupportedException(windMode + " convertion not supported.");
            }
        }
示例#6
0
        /**
         * <summary>Converts this constant into its equivalent GDI+ code.</summary>
         */
        public static FillMode ToGdi(
            this WindModeEnum windMode
            )
        {
            switch (windMode)
            {
            case WindModeEnum.EvenOdd:
                return(FillMode.Alternate);

            case WindModeEnum.NonZero:
                return(FillMode.Winding);

            default:
                throw new NotSupportedException(windMode + " convertion not supported.");
            }
        }
示例#7
0
文件: PaintPath.cs 项目: n9/pdfclown
 private PaintPath(
     string operator_,
     bool closed,
     bool stroked,
     bool filled,
     WindModeEnum? fillMode
     )
     : base(operator_)
 {
     this.closed = closed;
       this.stroked = stroked;
       this.filled = filled;
       this.fillMode = (fillMode.HasValue ? fillMode.Value : WindModeEnum.EvenOdd);
 }