Exemple #1
0
        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();
            }
        }
Exemple #2
0
		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();
			}
		}