/// <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(); }
/// <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); }
public Walker(StrokedPath enclosingInstance, DrawContext context) { InitBlock(enclosingInstance); this.context = context; }
private void InitBlock(StrokedPath enclosingInstance) { this.enclosingInstance = enclosingInstance; }
private void InitBlock(StrokedPath enclosingInstance) { this.enclosingInstance = enclosingInstance; }
public Walker(StrokedPath enclosingInstance, DrawContext context) { InitBlock(enclosingInstance); this.context = context; }