void RectanglePath(float x1, float y1, float x2, float y2) { MoveTo (x1, y1); LineTo (x1, y2); LineTo (x2, y2); LineTo (x2, y1); 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); }