29 writes to SmoothingMode
System.Drawing.Common (1)
System\Drawing\Printing\PreviewPrintController.cs (1)
96_graphics.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias;
System.Drawing.Common.Tests (12)
mono\System.Drawing\GraphicsTests.cs (7)
129g.SmoothingMode = SmoothingMode.AntiAlias; 293g.SmoothingMode = SmoothingMode.AntiAlias; 306g.SmoothingMode = SmoothingMode.None; 963g.SmoothingMode = SmoothingMode.AntiAlias; 996g.SmoothingMode = SmoothingMode.AntiAlias; 1030g.SmoothingMode = SmoothingMode.AntiAlias; 1111g.SmoothingMode = SmoothingMode.AntiAlias;
System\Drawing\GraphicsTests.cs (5)
909graphics.SmoothingMode = smoothingMode; 920AssertExtensions.Throws<InvalidEnumArgumentException>("value", () => graphics.SmoothingMode = smoothingMode); 928AssertExtensions.Throws<ArgumentException>(null, () => graphics.SmoothingMode = SmoothingMode.Invalid); 940Assert.Throws<InvalidOperationException>(() => graphics.SmoothingMode = SmoothingMode.AntiAlias); 956AssertExtensions.Throws<ArgumentException>(null, () => graphics.SmoothingMode = SmoothingMode.AntiAlias);
System.Windows.Forms (15)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (6)
80g.SmoothingMode = Drawing.Drawing2D.SmoothingMode.AntiAlias; 104g.SmoothingMode = smoothingMode; 120g.SmoothingMode = Drawing.Drawing2D.SmoothingMode.AntiAlias; 142g.SmoothingMode = smoothingMode; 158g.SmoothingMode = Drawing.Drawing2D.SmoothingMode.AntiAlias; 180g.SmoothingMode = smoothingMode;
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (2)
82g.SmoothingMode = SmoothingMode.AntiAlias; 99g.SmoothingMode = SmoothingMode.AntiAlias;
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (2)
130graphics.SmoothingMode = SmoothingMode.AntiAlias; 217graphics.SmoothingMode = originalMode;
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (1)
173graphics.SmoothingMode = SmoothingMode.AntiAlias;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
1070g.SmoothingMode = SmoothingMode.AntiAlias; 1114g.SmoothingMode = oldSmoothing;
System\Windows\Forms\Rendering\ControlPaint_ModernControlButtonRenderer.cs (2)
83graphics.SmoothingMode = SmoothingMode.AntiAlias; 143graphics.SmoothingMode = oldMode;
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
118g.SmoothingMode = SmoothingMode.AntiAlias;
16 references to SmoothingMode
System.Drawing.Common.Tests (10)
mono\System.Drawing\GraphicsTests.cs (6)
113Assert.Equal(SmoothingMode.None, g.SmoothingMode); 140Assert.Equal(SmoothingMode.AntiAlias, g.SmoothingMode); 318Assert.Equal(SmoothingMode.AntiAlias, g.SmoothingMode); 332Assert.Equal(SmoothingMode.None, g.SmoothingMode); 913AssertEquals(message + ".SmoothingMode", SmoothingMode.None, g.SmoothingMode); 929AssertEquals(message + ".SmoothingMode", SmoothingMode.AntiAlias, g.SmoothingMode);
System\Drawing\GraphicsTests.cs (4)
910Assert.Equal(expectedSmoothingMode, graphics.SmoothingMode); 939Assert.Throws<InvalidOperationException>(() => graphics.SmoothingMode); 955AssertExtensions.Throws<ArgumentException>(null, () => graphics.SmoothingMode); 2815Assert.Equal(SmoothingMode.None, graphics.SmoothingMode);
System.Windows.Forms (6)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (3)
79var smoothingMode = g.SmoothingMode; 119var smoothingMode = g.SmoothingMode; 157var smoothingMode = g.SmoothingMode;
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (1)
126SmoothingMode originalMode = graphics.SmoothingMode;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
1069SmoothingMode oldSmoothing = g.SmoothingMode;
System\Windows\Forms\Rendering\ControlPaint_ModernControlButtonRenderer.cs (1)
82SmoothingMode oldMode = graphics.SmoothingMode;