public static ImageInterpolation ToEto(this NSImageInterpolation value) { switch (value) { case NSImageInterpolation.None: return(ImageInterpolation.None); case NSImageInterpolation.Low: return(ImageInterpolation.Low); case NSImageInterpolation.Medium: return(ImageInterpolation.Medium); case NSImageInterpolation.Default: case NSImageInterpolation.High: return(ImageInterpolation.High); default: throw new NotSupportedException(); } }
public static ImageInterpolation Convert (NSImageInterpolation value) { switch (value) { case NSImageInterpolation.None: return ImageInterpolation.None; case NSImageInterpolation.Low: return ImageInterpolation.Low; case NSImageInterpolation.Medium: return ImageInterpolation.Medium; case NSImageInterpolation.Default: case NSImageInterpolation.High: return ImageInterpolation.High; default: throw new NotSupportedException(); } }