Package railo.runtime.img

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


     
      // add border
      if(showborder) {
        try {
          img = new Image(bi);
          img.addBorder(1,Color.BLACK,Image.BORDER_TYPE_CONSTANT);
          bi=img.getBufferedImage();
        }
        catch (PageException e) {}
      }
      if(format==FORMAT_PNG)    ChartUtilities.writeBufferedImageAsPNG(os, bi);
View Full Code Here


    else if("copy".equals(strBorderType))    borderType=BorderExtender.BORDER_COPY;
    else if("reflect".equals(strBorderType))  borderType=BorderExtender.BORDER_REFLECT;
    else if("wrap".equals(strBorderType))    borderType=BorderExtender.BORDER_WRAP;
     
    Image image=Image.toImage(name);
    image.addBorder((int)thickness,ColorCaster.toColor(color),borderType);
   
   
    return null;
  }
}
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.