Exemplo n.º 1
0
        public void Generate()
        {
            CaptchaModel model = Captcha.Generate();

            CorrectX = model.X;
            //pb2.Size = new Size(model.Slide.Width, model.Slide.Height);
            //pb1.Size = new Size(model.Background.Width, model.Background.Height);
            pb2.Image = model.Slide;
            pb1.Image = model.Background;
            Bitmap bitmap = (Bitmap)model.Background;
            Color  color  = bitmap.GetPixel(bitmap.Width - lblRefresh.Width, lblRefresh.Height);

            lblRefresh.ForeColor = Captcha.AntiColor(color);
        }