if(name instanceof String) name=pc.getVariable(Caster.toString(name));
Image img = Image.toImage(name);
if (gain < -1.0 || gain > 2.0)
throw new FunctionException(pc,"ImageSharpen",2,"gain","value must be between 1 and 2");
img.sharpen((float)gain);
return null;
}
}