Package org.infoglue.deliver.util.graphics

Examples of org.infoglue.deliver.util.graphics.ImageRenderer


      {
        File imageFile = new File(filePath + java.io.File.separator + fileName);
        if(!imageFile.exists())
        {
          logger.info("Creating a imagerenderer");
          ImageRenderer imageRenderer = new ImageRenderer();
          imageRenderer.setCanvasWidth(canvasWidth);
            imageRenderer.setCanvasHeight(canvasHeight);
            imageRenderer.setTextStartPosX(textStartPosX);
            imageRenderer.setTextStartPosY(textStartPosY);
            imageRenderer.setTextWidth(textWidth);
            imageRenderer.setTextHeight(textHeight);
          imageRenderer.setFontName(fontName);
          imageRenderer.setFontStyle(fontStyle);
          imageRenderer.setFontSize(fontSize);
          imageRenderer.setForeGroundColor(foregroundColor);
          imageRenderer.setBackgroundColor(backgroundColor);
          imageRenderer.setBackgroundImageUrl(backgroundImageUrl);
         
          logger.info("Created imageRenderer and printing to " + filePath + java.io.File.separator + fileName);         
          imageRenderer.generateGifImageFromText(filePath + java.io.File.separator + fileName, attribute, LanguageDeliveryController.getLanguageDeliveryController().getLanguageVO(getDatabase(), this.languageId).getCharset());
          logger.info("Rendered in getContentAttributeAsImageUrl");
        }

        i++;
        filePath = CmsPropertyHandler.getProperty("digitalAssetPath." + i);
View Full Code Here


      {
        File imageFile = new File(filePath + java.io.File.separator + fileName);
        if(!imageFile.exists())
        {
          logger.info("Creating a imagerenderer");
          ImageRenderer imageRenderer = new ImageRenderer();
          imageRenderer.setCanvasWidth(canvasWidth);
            imageRenderer.setCanvasHeight(canvasHeight);
            imageRenderer.setTextStartPosX(textStartPosX);
            imageRenderer.setTextStartPosY(textStartPosY);
            imageRenderer.setTextWidth(textWidth);
            imageRenderer.setTextHeight(textHeight);
          imageRenderer.setFontName(fontName);
          imageRenderer.setFontStyle(fontStyle);
          imageRenderer.setFontSize(fontSize);
          imageRenderer.setForeGroundColor(foregroundColor);
          imageRenderer.setBackgroundColor(backgroundColor);
          imageRenderer.setBackgroundImageUrl(backgroundImageUrl);
         
          logger.info("Created imageRenderer and printing to " + filePath + java.io.File.separator + fileName);         
          imageRenderer.generateGifImageFromText(filePath + java.io.File.separator + fileName, text, LanguageDeliveryController.getLanguageDeliveryController().getLanguageVO(getDatabase(), this.languageId).getCharset());
          logger.info("Rendered in getContentAttributeAsImageUrl");
        }

        i++;
        filePath = CmsPropertyHandler.getProperty("digitalAssetPath." + i);
View Full Code Here

TOP

Related Classes of org.infoglue.deliver.util.graphics.ImageRenderer

Copyright © 2018 www.massapicom. 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.