public void FillRect(GDIBrush brush, int x, int y, int width, int height) { APIRect gr; gr.top = y; gr.left = x; gr.right = width + x; gr.bottom = height + y; NativeMethods.FillRect(mhDC, ref gr, brush.hBrush); }