Examples of generateImage()


Examples of org.apache.myfaces.custom.captcha.util.CAPTCHAImageGenerator.generateImage()

            // Generate random CAPTCHA text.
            captchaText = CAPTCHATextGenerator.generateRandomText();

            // Generate the image, the BG color is randomized from starting to ending colors.
            captchaImageGenerator.generateImage(response, captchaText,
                    startingColor, endingColor);

            // Set the generated text in the user session.
            facesContext.getExternalContext().getSessionMap().put(
                    captchaSessionKeyName, captchaText);
View Full Code Here

Examples of org.apache.myfaces.custom.captcha.util.CAPTCHAImageGenerator.generateImage()

                            config.isPrefixCaptchaSessionKey() ?
                                AbstractCAPTCHAComponent.ATTRIBUTE_CAPTCHA_SESSION_KEY_NAME+
                                    "_"+captchaSessionKeyName : captchaSessionKeyName, captchaText);

                    // Generate the image, the BG color is randomized from starting to ending colors.
                    captchaImageGenerator.generateImage(out, captchaText,
                            startingColor, endingColor);
                }
                finally
                {
                    out.close();
View Full Code Here

Examples of org.apache.myfaces.custom.captcha.util.CAPTCHAImageGenerator.generateImage()

            // Set the generated text in the user session.
            facesContext.getExternalContext().getSessionMap().put(
                    captchaSessionKeyName, captchaText);

            // Generate the image, the BG color is randomized from starting to ending colors.
            captchaImageGenerator.generateImage(response, captchaText,
                    startingColor, endingColor);
        }
        finally
        {
            out.close();
View Full Code Here

Examples of org.apache.myfaces.custom.captcha.util.CAPTCHAImageGenerator.generateImage()

            // Generate random CAPTCHA text.
            captchaText = CAPTCHATextGenerator.generateRandomText();

            // Generate the image, the BG color is randomized from starting to ending colors.
            captchaImageGenerator.generateImage(response, captchaText,
                    startingColor, endingColor);

            // Set the generated text in the user session.
            facesContext.getExternalContext().getSessionMap().put(
                    captchaSessionKeyName, captchaText);
View Full Code Here

Examples of org.apache.myfaces.custom.captcha.util.CAPTCHAImageGenerator.generateImage()

                    // Set the generated text in the user session.
                    facesContext.getExternalContext().getSessionMap().put(
                            captchaSessionKeyName, captchaText);

                    // Generate the image, the BG color is randomized from starting to ending colors.
                    captchaImageGenerator.generateImage(out, captchaText,
                            startingColor, endingColor);
                }
                finally
                {
                    out.close();
View Full Code Here

Examples of org.opentripplanner.analyst.core.Tile.generateImage()

            long elapsed = Math.abs(surfB.dateTime - surfA.dateTime);
            image = tile.linearCombination(-1, surfA, -1, surfB, elapsed/60, renderRequest);
            break;
        case TRAVELTIME :
        default :
            image = tile.generateImage(surfA, renderRequest);
        }
       
        // add a timestamp to the image if requested.
        // of course this will make it useless as a raster for analysis, but it's good for animations.
        if (renderRequest.timestamp) {
View Full Code Here

Examples of org.sonar.api.charts.Chart.generateImage()

    } else {
      ChartFactory chartFactory = Platform.getInstance().getContainer().getComponentByType(ChartFactory.class);
      Chart chart = chartFactory.getChart(request.getParameter("ck"));
      if (chart != null) {
        BufferedImage image = chart.generateImage(getParams(request));
        OutputStream out = response.getOutputStream();
        try {
          response.setContentType("image/png");
          exportAsPNG(image, 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.