Exemplo n.º 1
0
        private void RegistrationForm_Paint(object sender, PaintEventArgs e)
        {
            if (repaintCaptcha)
            {
                Captcha        = rcntrl.createImage(120, 56);
                repaintCaptcha = false;
            }
            Graphics graphicsObj = e.Graphics;

            graphicsObj.DrawImage(Captcha, 22, 215, Captcha.Width, Captcha.Height);
        }
Exemplo n.º 2
0
 private void RegistrationForm_Paint(object sender, PaintEventArgs e)
 {
     if (repaintCaptcha)
     {
         Bitmap Captcha;
         Captcha           = rcntrl.createImage(120, 56);
         repaintCaptcha    = false;
         pictureBox2.Image = Captcha;
     }
     //Graphics graphicsObj = e.Graphics;
     //graphicsObj.DrawImage(Captcha, 22, 215, Captcha.Width, Captcha.Height);
 }
 public void createImageTest()
 {
     Library _libr = null; // TODO: Initialize to an appropriate value
     RegistrationControl target = new RegistrationControl(_libr); // TODO: Initialize to an appropriate value
     int Width = 10; // TODO: Initialize to an appropriate value
     int Height = 10; // TODO: Initialize to an appropriate value
     Bitmap expected = target.createImage(Width, Height); ; // TODO: Initialize to an appropriate value
     Bitmap actual;
     actual = target.createImage(Width, Height);
     Assert.AreNotEqual(expected, actual);
 }