Exemple #1
0
        /// <summary> Fills and strokes the current path.</summary>
        public virtual void FillAndStroke()
        {
            Path       p     = path.createPath();
            FilledPath shape = new FilledPath(p);

            shape.FillRule = state.fillRule;
            state.scene.add(createNode(shape, state.fillColor, state.fillBrush));

            StrokedPath r2 = new StrokedPath(p);

            r2.LineWidth  = state.lineWidth;
            r2.EndCap     = state.lineCap;
            r2.LineJoin   = state.lineJoin;
            r2.MiterLimit = state.miterLimit;

            state.scene.add(createNode(r2, state.strokeColor, state.strokeBrush));

            path = new PathBuilder();
        }
 public Tesselator(Path path)
 {
     this.path = path;
 }
Exemple #3
0
 public Tesselator(Path path)
 {
     this.path = path;
 }
Exemple #4
0
 /// <summary>
 /// Constructs a filled path using the given path.
 /// </summary>
 /// <param name="path">the path to be filled.
 /// </param>
 public FilledPath(Path path)
 {
     this.path = path;
 }
Exemple #5
0
 /// <summary>
 /// Creates a StrokedPath object with the given path.
 /// </summary>
 /// <param name="path">the path to be stroked.
 /// </param>
 public StrokedPath(Path path)
 {
     this.path = path;
 }
 /// <summary> 
 /// Creates a StrokedPath object with the given path.
 /// </summary>
 /// <param name="path">the path to be stroked.
 /// </param>
 public StrokedPath(Path path)
 {
     this.path = path;
 }