Setup() private method

private Setup ( Graphics graphics, bool fill ) : void
graphics Graphics
fill bool
return void
示例#1
0
 public void DrawEllipse(Pen pen, RectangleF rect)
 {
     if (pen == null)
     {
         throw new ArgumentNullException("pen");
     }
     pen.Setup(this, false);
     context.StrokeEllipseInRect(rect);
 }
示例#2
0
 void Stroke(Pen pen)
 {
     // First we call the Pen with a fill of false so the brush can setup the stroke
     // For LinearGradientBrush this will setup a TransparentLayer so the gradient can
     // be filled at the end.  See comments.
     pen.Setup (this, false);
     context.DrawPath(CGPathDrawingMode.Stroke);
     // Next we call the Pen with a fill of true so the brush can draw the Gradient.
     // For LinearGradientBrush this will draw the Gradient and end the TransparentLayer.
     // See comments.
     pen.Setup (this, true);
 }
示例#3
0
 void Stroke(Pen pen)
 {
     pen.Setup(this, false);
     context.StrokePath();
 }