Exemple #1
0
        private void Form1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            if (!bDragging)
            {
                return;
            }
            currentPic.addPoint(e.X, e.Y);

            using (Graphics g = this.CreateGraphics())
            {
                currentPic.draw(g, 0, 0);
            }
        }
Exemple #2
0
        public void drawPicInMirrors(Graphics g, int x0, int y0)
        {
            int step = picInMirrorSerial.Count;

            for (int i = step - 1; i >= 0; i--)
            {                 //including original object, i--, more later, more draw first
                ArrayList se = (ArrayList)picInMirrorSerial[i];
                for (int j = 0; j < se.Count; j++)
                {
                    PicObject pic = (PicObject)se[j];
                    pic.draw(g, x0, y0);
                }
            }
        }