if (width < 0)
throw new FunctionException(pc,"ImageCopy",3,"width","width must contain a none negative value");
if (height < 0)
throw new FunctionException(pc,"ImageCopy",4,"height","width must contain a none negative value");
return img.copy((float)x, (float)y, (float)width, (float)height);
}
public static Object call(PageContext pc, Object name, double x, double y, double width, double height,double dx) throws PageException {
throw new FunctionException(pc,"ImageCopy",7,"dy","when you define dx, you have also to define dy");
}