winmaped2.ColorDisplaySolid.repaint C# (CSharp) Method

repaint() public method

public repaint ( ) : void
return void
        public void repaint()
        {
            Graphics g = CreateGraphics();
            paint(g);
            g.Dispose();
        }

Usage Example

Example #1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            if (cds != null)
            {
                cds.repaint();
            }
            if (cdlg != null)
            {
                cdlg.update();
            }
            if (redraw_image)
            {
                pr2.IRenderImage img = pr2.RenderImage.LockBitmap(bmpDisplay);
                Render.renderColorPicker(img, _bhue);
                img.Dispose();
                redraw_image = false;
            }

            e.Graphics.DrawImage(bmpDisplay, 0, 0, Width, Height);
            e.Graphics.DrawEllipse(Pens.Black, mx - 5, my - 5, 10, 10);
            e.Graphics.DrawEllipse(Pens.White, mx - 4, my - 4, 8, 8);
            e.Graphics.DrawEllipse(Pens.Black, mx - 3, my - 3, 6, 6);

            PaintFunctions.PaintFrame(e.Graphics, 0, 0, Width, Height);
        }