5 references to GetNearestColor
System.Drawing.Common.Tests (3)
System\Drawing\GraphicsTests.cs (3)
1926Assert.Equal(expected, graphics.GetNearestColor(color)); 1937Assert.Throws<InvalidOperationException>(() => graphics.GetNearestColor(Color.Red)); 1952AssertExtensions.Throws<ArgumentException>(null, () => graphics.GetNearestColor(Color.Red));
System.Windows.Forms.Primitives (2)
System\Windows\Forms\SystemDrawingExtensions.cs (2)
17/// Similar to <see cref="Graphics.GetNearestColor(Color)"/>, but this retains the original color if the color 34Color newColor = graphics.GetNearestColor(color);