package railo.runtime.functions.image;
import railo.runtime.PageContext;
import railo.runtime.exp.PageException;
import railo.runtime.img.Image;
import railo.runtime.op.Caster;
public class ImageGetBufferedImage {
public static Object call(PageContext pc, Object name) throws PageException {
if(name instanceof String) name=pc.getVariable(Caster.toString(name));
Image img = Image.toImage(name);
return img.getBufferedImage();
}
}