Example #1
0
        public Form1()
        {
            InitializeComponent();

            HSBcol = new HSB();
            this.pictureBox1.Size = new System.Drawing.Size(640, 480); // equivalent of setSize in java code
            finished = false;
            c1       = Cursors.WaitCursor;
            c2       = Cursors.Cross;
            x1       = pictureBox1.Width;
            y1       = pictureBox1.Height;
            xy       = (float)x1 / (float)y1;
            picture  = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            g1       = Graphics.FromImage(picture);



            start();
        }
Example #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     HSB hsb = new HSB();
 }