Examples of GradiatedBackgroundProducer


Examples of jj.play.ns.nl.captcha.backgrounds.GradiatedBackgroundProducer

        /**
         * Set a gradient background.
         */
        public Captcha setBackground(String from, String to) {
            GradiatedBackgroundProducer bg = new GradiatedBackgroundProducer();
            bg.setFromColor(Color.decode(from));
            bg.setToColor(Color.decode(to));
            background = bg;
            return this;
        }
View Full Code Here

Examples of jj.play.ns.nl.captcha.backgrounds.GradiatedBackgroundProducer

        /**
         * Set a gradient background.
         */
        public Captcha setBackground(String from, String to) {
            GradiatedBackgroundProducer bg = new GradiatedBackgroundProducer();
            bg.setFromColor(Color.decode(from));
            bg.setToColor(Color.decode(to));
            background = bg;
            return this;
        }
View Full Code Here

Examples of jj.play.ns.nl.captcha.backgrounds.GradiatedBackgroundProducer

        /**
         * Set a gradient background.
         */
        public Captcha setBackground(String from, String to) {
            GradiatedBackgroundProducer bg = new GradiatedBackgroundProducer();
            bg.setFromColor(Color.decode(from));
            bg.setToColor(Color.decode(to));
            background = bg;
            return this;
        }
View Full Code Here

Examples of jj.play.ns.nl.captcha.backgrounds.GradiatedBackgroundProducer

        /**
         * Set a gradient background.
         */
        public Captcha setBackground(String from, String to) {
            GradiatedBackgroundProducer bg = new GradiatedBackgroundProducer();
            bg.setFromColor(Color.decode(from));
            bg.setToColor(Color.decode(to));
            background = bg;
            return this;
        }
View Full Code Here

Examples of nl.captcha.backgrounds.GradiatedBackgroundProducer

    public void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {

        Captcha captcha = new Captcha.Builder(_width, _height)
          .addText()
          .addBackground(new GradiatedBackgroundProducer())
            .gimp()
            .addNoise()
            .addBorder()
            .build();
View Full Code Here

Examples of nl.captcha.backgrounds.GradiatedBackgroundProducer

          captcha = new Captcha.Builder(_width, _height)
                .addText(new ChineseTextProducer())
                .gimp()
                .addBorder()
                  .addNoise()
                  .addBackground(new GradiatedBackgroundProducer())
                  .build();

          session.setAttribute(NAME, captcha);
          CaptchaServletUtil.writeImage(resp, captcha.getImage());
         
View Full Code Here

Examples of nl.captcha.backgrounds.GradiatedBackgroundProducer

    private volatile Captcha captcha;

    public void serveCaptcha(String id, Locale locale, String format, OutputStream out) throws IOException {
        captcha = new Captcha.Builder(widht, height)
                .addText()
                .addBackground(new GradiatedBackgroundProducer())
                .gimp()
                .addNoise()
                .addBorder()
                .build();
        renderCaptcha(captcha.getImage(), format, out);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.