コード例 #1
0
 public void DrawPath(Pen pen, IGraphicsPath path)
 {
     Control.Save();
     Control.Translate(offset, offset);
     path.Apply(Control);
     Control.Restore();
     pen.Apply(this);
 }
コード例 #2
0
 public void DrawPath(Pen pen, IGraphicsPath path)
 {
     SetOffset(false);
     Control.Save();
     path.Apply(Control);
     pen.Apply(this);
     Control.Restore();
 }
コード例 #3
0
 public void FillPath(Brush brush, IGraphicsPath path)
 {
     SetOffset(true);
     Control.Save();
     path.Apply(Control);
     Control.FillRule = path.FillMode.ToCairo();
     brush.Apply(this);
     Control.Restore();
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 void ApplyClip()
 {
     if (clipPath != null)
     {
         clipPath.Apply(Control);
         Control.Clip();
     }
     else if (clipBounds != null)
     {
         Control.Rectangle(clipBounds.Value.ToCairo());
         Control.Clip();
     }
 }