draw checkbox with SmoothingMode.AntiAlias

This commit is contained in:
Frank Skare
2021-03-07 18:47:52 +01:00
parent 9080a856e2
commit 1b460e9929
+4 -1
View File
@@ -1,4 +1,5 @@
Imports System.Windows.Forms.VisualStyles
Imports System.Drawing.Drawing2D
Imports System.Windows.Forms.VisualStyles
Imports StaxRip.UI
Public Class CheckBoxRendererEx
@@ -8,6 +9,8 @@ Public Class CheckBoxRendererEx
End Sub
Public Shared Sub DrawCheckBox(g As Graphics, rect As Rectangle, state As CheckBoxState)
g.SmoothingMode = SmoothingMode.AntiAlias
If ThemeManager.CurrentTheme.Name = ThemeManager.DefaultThemeName OrElse DesignHelp.IsDesignMode Then
CheckBoxRenderer.DrawCheckBox(g, rect.Location, state)
Return