public void FillRect(Color color, int x, int y, int width, int height) { GDIBrush b = new GDIBrush(color); FillRect(b, x, y, width, height); b.Dispose(); }
public void Clear(Color color) { GDIBrush b = new GDIBrush(color); Clear(b); b.Dispose(); }
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); }
public void Clear(GDIBrush brush) { FillRect(brush, 0, 0, mWidth, mHeight); }