001 package railo.runtime.functions.image; 002 003 import railo.runtime.PageContext; 004 import railo.runtime.exp.PageException; 005 import railo.runtime.img.Image; 006 import railo.runtime.op.Caster; 007 008 public class ImageDrawImage { 009 010 public static String call(PageContext pc, Object name, Object image,double x, double y) throws PageException { 011 if(name instanceof String) name=pc.getVariable(Caster.toString(name)); 012 Image img = Image.toImage(name); 013 014 015 img.drawImage(Image.createImage(pc, image, true, false,true), (int)x, (int)y); 016 return null; 017 } 018 019 }