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)
440
public 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)
109
Assert.Equal(
InterpolationMode
.Bilinear, g.InterpolationMode);
125
g.InterpolationMode =
InterpolationMode
.HighQualityBilinear;
136
Assert.Equal(
InterpolationMode
.HighQualityBilinear, g.InterpolationMode);
288
g.InterpolationMode =
InterpolationMode
.HighQualityBilinear;
301
g.InterpolationMode =
InterpolationMode
.Bilinear;
314
Assert.Equal(
InterpolationMode
.HighQualityBilinear, g.InterpolationMode);
328
Assert.Equal(
InterpolationMode
.Bilinear, g.InterpolationMode);
910
AssertEquals(message + ".InterpolationMode",
InterpolationMode
.Bilinear, g.InterpolationMode);
925
AssertEquals(message + ".InterpolationMode",
InterpolationMode
.HighQualityBicubic, g.InterpolationMode);
958
g.InterpolationMode =
InterpolationMode
.HighQualityBicubic;
991
g.InterpolationMode =
InterpolationMode
.HighQualityBicubic;
1025
g.InterpolationMode =
InterpolationMode
.HighQualityBicubic;
1106
g.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)]
588
public void InterpolationMode_SetValid_GetReturnsExpected(
InterpolationMode
interpolationMode,
InterpolationMode
expectedInterpolationMode)
597
[InlineData(
InterpolationMode
.Invalid - 1)]
598
[InlineData(
InterpolationMode
.HighQualityBicubic + 1)]
599
public void InterpolationMode_SetInvalid_ThrowsInvalidEnumArgumentException(
InterpolationMode
interpolationMode)
611
AssertExtensions.Throws<ArgumentException>(null, () => graphics.InterpolationMode =
InterpolationMode
.Invalid);
623
Assert.Throws<InvalidOperationException>(() => graphics.InterpolationMode =
InterpolationMode
.HighQualityBilinear);
639
AssertExtensions.Throws<ArgumentException>(null, () => graphics.InterpolationMode =
InterpolationMode
.HighQualityBilinear);
2807
Assert.Equal(
InterpolationMode
.Bilinear, graphics.InterpolationMode);
System.Windows.Forms.Primitives (4)
System\Windows\Forms\Internals\ScaleHelper.cs (4)
162
InterpolationMode
interpolationMode =
InterpolationMode
.HighQualityBicubic;
169
interpolationMode =
InterpolationMode
.NearestNeighbor;
174
interpolationMode =
InterpolationMode
.HighQualityBilinear;