Example #1
0
        public PanelDrawing()
        {
            //SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true);
            this.DoubleBuffered = true;

            //InitCustomComponent();
            BackgroundImage = new Bitmap(10, 10);
            //image = new Bitmap(this.Width, this.Height);


            imageCustom = new MyImage(Properties.Settings.Default.panel_width, Properties.Settings.Default.panel_heigh);
            //image = new Bitmap(Properties.Settings.Default.panel_width, Properties.Settings.Default.panel_heigh);


            penCustom           = new MyPen(this);
            penCustom.sizeBrush = Properties.Settings.Default.pen_witdh;


            controlPoint = new ControlPoint(7);



            m_MouseDot     = new Mouse_Dot(this);
            m_MouseLine    = new Mouse_Line(this);
            m_MouseRect    = new Mouse_Rectangle(this);
            m_MouseEclipse = new Mouse_Eclipse(this);
            m_MousePolygon = new Mouse_Polygon(this);

            m_MouseRegion = new Mouse_Region(this);


            m_MouseHandler = m_MouseDot;
        }
Example #2
0
        public MouseTrippleHandler(PanelDrawing _Host)
        {
            host      = _Host;
            penCustom = host.penCustom;

            drawLayer = null;
            grabPoint = null;

            pointTranslate = Point.Empty;
        }