44 references to InterpolationMode
System.Drawing (1)
System.Drawing.cs (1)
38[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.InterpolationMode))]
System.Drawing.Common (1)
Special\NotSupported.cs (1)
440public System.Drawing.Drawing2D.InterpolationMode InterpolationMode { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (38)
mono\System.Drawing\GraphicsTests.cs (13)
111Assert.Equal(InterpolationMode.Bilinear, g.InterpolationMode); 127g.InterpolationMode = InterpolationMode.HighQualityBilinear; 138Assert.Equal(InterpolationMode.HighQualityBilinear, g.InterpolationMode); 290g.InterpolationMode = InterpolationMode.HighQualityBilinear; 303g.InterpolationMode = InterpolationMode.Bilinear; 316Assert.Equal(InterpolationMode.HighQualityBilinear, g.InterpolationMode); 330Assert.Equal(InterpolationMode.Bilinear, g.InterpolationMode); 912AssertEquals(message + ".InterpolationMode", InterpolationMode.Bilinear, g.InterpolationMode); 927AssertEquals(message + ".InterpolationMode", InterpolationMode.HighQualityBicubic, g.InterpolationMode); 960g.InterpolationMode = InterpolationMode.HighQualityBicubic; 993g.InterpolationMode = InterpolationMode.HighQualityBicubic; 1027g.InterpolationMode = InterpolationMode.HighQualityBicubic; 1108g.InterpolationMode = InterpolationMode.HighQualityBicubic;
System\Drawing\GraphicsTests.cs (25)
580[InlineData(InterpolationMode.Bicubic, InterpolationMode.Bicubic)] 581[InlineData(InterpolationMode.Bilinear, InterpolationMode.Bilinear)] 582[InlineData(InterpolationMode.Default, InterpolationMode.Bilinear)] 583[InlineData(InterpolationMode.High, InterpolationMode.HighQualityBicubic)] 584[InlineData(InterpolationMode.HighQualityBicubic, InterpolationMode.HighQualityBicubic)] 585[InlineData(InterpolationMode.HighQualityBilinear, InterpolationMode.HighQualityBilinear)] 586[InlineData(InterpolationMode.Low, InterpolationMode.Bilinear)] 587[InlineData(InterpolationMode.NearestNeighbor, InterpolationMode.NearestNeighbor)] 588public void InterpolationMode_SetValid_GetReturnsExpected(InterpolationMode interpolationMode, InterpolationMode expectedInterpolationMode) 597[InlineData(InterpolationMode.Invalid - 1)] 598[InlineData(InterpolationMode.HighQualityBicubic + 1)] 599public void InterpolationMode_SetInvalid_ThrowsInvalidEnumArgumentException(InterpolationMode interpolationMode) 611AssertExtensions.Throws<ArgumentException>(null, () => graphics.InterpolationMode = InterpolationMode.Invalid); 623Assert.Throws<InvalidOperationException>(() => graphics.InterpolationMode = InterpolationMode.HighQualityBilinear); 639AssertExtensions.Throws<ArgumentException>(null, () => graphics.InterpolationMode = InterpolationMode.HighQualityBilinear); 2807Assert.Equal(InterpolationMode.Bilinear, graphics.InterpolationMode);
System.Windows.Forms.Primitives (4)
System\Windows\Forms\Internals\ScaleHelper.cs (4)
162InterpolationMode interpolationMode = InterpolationMode.HighQualityBicubic; 169interpolationMode = InterpolationMode.NearestNeighbor; 174interpolationMode = InterpolationMode.HighQualityBilinear;