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)
109Assert.Equal(InterpolationMode.Bilinear, g.InterpolationMode); 125g.InterpolationMode = InterpolationMode.HighQualityBilinear; 136Assert.Equal(InterpolationMode.HighQualityBilinear, g.InterpolationMode); 288g.InterpolationMode = InterpolationMode.HighQualityBilinear; 301g.InterpolationMode = InterpolationMode.Bilinear; 314Assert.Equal(InterpolationMode.HighQualityBilinear, g.InterpolationMode); 328Assert.Equal(InterpolationMode.Bilinear, g.InterpolationMode); 910AssertEquals(message + ".InterpolationMode", InterpolationMode.Bilinear, g.InterpolationMode); 925AssertEquals(message + ".InterpolationMode", InterpolationMode.HighQualityBicubic, g.InterpolationMode); 958g.InterpolationMode = InterpolationMode.HighQualityBicubic; 991g.InterpolationMode = InterpolationMode.HighQualityBicubic; 1025g.InterpolationMode = InterpolationMode.HighQualityBicubic; 1106g.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;