Example #1
0
        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();
        }
Example #2
0
        public void Clear(Color color)
        {
            GDIBrush b = new GDIBrush(color);

            Clear(b);
            b.Dispose();
        }
Example #3
0
        public void FillRect(GDIBrush brush, int x, int y, int width, int height)
        {
            RECTAPI gr;

            gr.Top    = y;
            gr.Left   = x;
            gr.Right  = width + x;
            gr.Bottom = height + y;

            NativeUser32Api.FillRect(mhDC, ref gr, brush.hBrush);
        }
Example #4
0
 public void Clear(GDIBrush brush)
 {
     FillRect(brush, 0, 0, mWidth, mHeight);
 }