Ejemplo n.º 1
0
 private void checkBox2_CheckedChanged(object sender, EventArgs e)
 {
     freeDraw = checkBox2.Checked;
     if (!freeDraw)
     {
         Subdivision.AddUserPath();
     }
 }
Ejemplo n.º 2
0
 private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
 {
     if (!freeDraw)
     {
         pictureBox1_MouseClick(sender, e);
     }
     else
     {
         Subdivision.AddUserPath();
         skippedPoints = 0;
         currentPath   = true;
     }
 }
Ejemplo n.º 3
0
        public Form1()
        {
            InitializeComponent();
            String[] tok = "$Rev: 251 $".Split(' ');
            Text += " (rev: " + tok[1] + ')';
            Subdivision.AddUserPath();
            Subdivision.ResetRndSeed();
            int width  = (int)numericXres.Value;
            int height = (int)numericYres.Value;

            Subdivision.GenerateDemoPoints(width, height);
            output = new Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
            doRedraw();
        }