case Image.IP_HAMMING: return new Hamming();
case Image.IP_BLACKMAN: return new Blackman();
case Image.IP_QUADRATIC:return new Quadratic();
case Image.IP_HIGHQUALITY:
case Image.IP_MEDIUMPERFORMANCE:
case Image.IP_MITCHELL: return new Mitchell();
case Image.IP_HIGHESTQUALITY:
case Image.IP_LANCZOS: return new Lanczos();
case Image.IP_BESSEL: return new Bessel();
default: throw new ExpressionException("invalid interpolation definition");
}