Example #1
0
        public void FillRect(Color color, int x, int y, int width, int height)
        {
            var b = new GDIBrush(color);

            FillRect(b, x, y, width, height);
            b.Dispose();
        }
Example #2
0
        public void Clear(Color color)
        {
            var b = new GDIBrush(color);

            Clear(b);
            b.Dispose();
        }
Example #3
0
        //---------------------------------------

        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);
        }
Example #4
0
 public void Clear(GDIBrush brush)
 {
     FillRect(brush, 0, 0, mWidth, mHeight);
 }