public void DrawPath(Pen pen, IGraphicsPath path) { Control.Save(); Control.Translate(offset, offset); path.Apply(Control); Control.Restore(); pen.Apply(this); }
public void DrawPath(Pen pen, IGraphicsPath path) { SetOffset(false); Control.Save(); path.Apply(Control); pen.Apply(this); Control.Restore(); }
public void FillPath(Brush brush, IGraphicsPath path) { SetOffset(true); Control.Save(); path.Apply(Control); Control.FillRule = path.FillMode.ToCairo(); brush.Apply(this); Control.Restore(); }
public void FillPath(Brush brush, IGraphicsPath path) { Control.Save(); Control.Translate(inverseoffset, inverseoffset); path.Apply(Control); Control.Restore(); Control.Save(); Control.FillRule = path.FillMode.ToCairo(); brush.Apply(this); Control.Restore(); }
void ApplyClip() { if (clipPath != null) { clipPath.Apply(Control); Control.Clip(); } else if (clipBounds != null) { Control.Rectangle(clipBounds.Value.ToCairo()); Control.Clip(); } }