Package railo.runtime.img

Examples of railo.runtime.img.Image.resize()


      img = new Image(transparent?dec.getPageAsTransparentImage(page):dec.getPageAsImage(page));
    } catch (PdfException e) {
      throw Caster.toPageException(e);
    }
    if(scale!=100)
      img.resize(scale, goodQuality?"highestquality":"highperformance", 1);
    img.writeOut(destination,format, overwrite, 1f);
  }


  public Image toImage(byte[] input,int page) throws IOException, PageException {
View Full Code Here


     
   
    // MUST interpolation/blur
    //if(!"highestquality".equals(interpolation) || blurFactor!=1.0)throw new ExpressionException("argument interpolation and blurFactor are not supported for function ImageResize");
   
    image.resize(width,height,interpolation,blurFactor);
    return null;
  }
 
  /*private static int toDimension(String label, String dimension) throws PageException {
    if(StringUtil.isEmpty(dimension)) return -1;
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.