Package org.infoglue.deliver.util.graphics

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


  public String getDigitalAssetThumbnailUrl(Integer digitalAssetId, int canvasWidth, int canvasHeight, String canvasColorHexCode, String alignment, String valignment, int width, int height, int quality) throws Exception
  {
    String imageHref = null;
    try
    {
      ColorHelper ch = new ColorHelper();
      Color canvasColor = ch.getHexColor(canvasColorHexCode);
           imageHref = DigitalAssetController.getDigitalAssetThumbnailUrl(digitalAssetId, canvasWidth, canvasHeight, canvasColor, alignment, valignment, width, height, quality);
    }
    catch(Exception e)
    {
      logger.warn("We could not get the url of the thumbnail: " + e.getMessage(), e);
View Full Code Here


  public String getDigitalAssetThumbnailUrl(Integer contentId, Integer languageId, String assetKey, boolean useLanguageFallback, int canvasWidth, int canvasHeight, String canvasColorHexCode, String alignment, String valignment, int width, int height, int quality) throws Exception
  {
    String imageHref = null;
    try
    {
      ColorHelper ch = new ColorHelper();
      Color canvasColor = ch.getHexColor(canvasColorHexCode);
      DigitalAssetVO assetVO = DigitalAssetController.getDigitalAssetVO(contentId, languageId, assetKey, useLanguageFallback);
          
      imageHref = DigitalAssetController.getDigitalAssetThumbnailUrl(assetVO.getId(), canvasWidth, canvasHeight, canvasColor, alignment, valignment, width, height, quality);
    }
    catch(Exception e)
View Full Code Here

   * This method gets the color utility.
   */
 
  public ColorHelper getColorHelper()
  {
    return new ColorHelper();
  }
View Full Code Here

  public String getDigitalAssetThumbnailUrl(Integer digitalAssetId, int canvasWidth, int canvasHeight, String canvasColorHexCode, String alignment, String valignment, int width, int height, int quality, Database db) throws Exception
  {
    String imageHref = null;
    try
    {
      ColorHelper ch = new ColorHelper();
      Color canvasColor = ch.getHexColor(canvasColorHexCode);
           imageHref = DigitalAssetController.getController().getDigitalAssetThumbnailUrl(digitalAssetId, canvasWidth, canvasHeight, canvasColor, alignment, valignment, width, height, quality, db);
    }
    catch(Exception e)
    {
      logger.warn("We could not get the url of the thumbnail: " + e.getMessage(), e);
View Full Code Here

TOP

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

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.