Examples of ColorHelper


Examples of com.catehuston.imagefilter.color.ColorHelper

  boolean redrawImage = true;

  @Override
  public void setup() {
    noLoop();
    imageState = new ImageState(new ColorHelper(new PixelColorHelper()));

    // Set up the view.
    size(IMAGE_MAX + SIDE_BAR_WIDTH, IMAGE_MAX);
    background(0);
View Full Code Here

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

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

  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

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

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

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, 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
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.