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 ImageDrawCubicCurve {
009            
010            public static String call(PageContext pc, Object name, 
011                            double x1, double y1,
012                            double ctrlx1, double ctrly1, 
013                            double ctrlx2, double ctrly2,
014                            double x2, double y2) throws PageException {
015                    if(name instanceof String) name=pc.getVariable(Caster.toString(name));
016                    Image img = Image.toImage(name);
017                    
018                    img.drawCubicCurve(ctrlx1, ctrly1, ctrlx2, ctrly2, x1, y1, x2, y2);
019                    return null;
020            }
021    }