void RectanglePath(RectangleF rectangle) { MoveTo (rectangle.Location); context.AddRect(rectangle.ToCGRect ()); context.ClosePath(); }
internal virtual void FillRect(Graphics graphics, CGRect rect) { // Use path by default, because this is how the default implementation works. // Some brushes override this to improve performance (SolidBrush, LinearGradientBrush) graphics.RectanglePath(rect); FillPath(graphics); }