Exemplo n.º 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();
        }
Exemplo n.º 2
0
        /// <summary> Strokes the current path.</summary>
        public virtual void Stroke()
        {
            StrokedPath r = new StrokedPath(path.createPath());

            r.LineWidth  = state.lineWidth;
            r.EndCap     = state.lineCap;
            r.LineJoin   = state.lineJoin;
            r.MiterLimit = state.miterLimit;
            r.DashArray  = state.lineDashLengths;
            r.DashPhase  = state.lineDashPhase;

            SceneNode node = createNode(r, state.strokeColor, state.strokeBrush);

            state.scene.add(node);

            System.Drawing.Rectangle rec = new System.Drawing.Rectangle();
            path = new PathBuilder();

            state.scene.draw(new DrawContext(state.callbacks), state.transform, ref rec);
        }
Exemplo n.º 3
0
 public Walker(StrokedPath enclosingInstance, DrawContext context)
 {
     InitBlock(enclosingInstance);
     this.context = context;
 }
Exemplo n.º 4
0
 private void InitBlock(StrokedPath enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Exemplo n.º 5
0
 private void InitBlock(StrokedPath enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Exemplo n.º 6
0
 public Walker(StrokedPath enclosingInstance, DrawContext context)
 {
     InitBlock(enclosingInstance);
     this.context = context;
 }