private Setup ( |
||
graphics | ||
fill | bool | |
return | void |
public void DrawEllipse(Pen pen, RectangleF rect) { if (pen == null) { throw new ArgumentNullException("pen"); } pen.Setup(this, false); context.StrokeEllipseInRect(rect); }
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); }
void Stroke(Pen pen) { pen.Setup(this, false); context.StrokePath(); }