.NET GDI+ 的 GraphicsPath.AddString 方法 如何实现抗锯齿?
PrivateSubForm1_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBas...
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Left = 0 Me.Width = Screen.PrimaryScreen.WorkingArea.Width Me.Height = 60 Me.Top = Screen.PrimaryScreen.WorkingArea.Height - Me.Height - 10 Dim g As New System.Drawing.Drawing2D.GraphicsPath Dim MyStringFormat As New StringFormat '新建一个文本样式 MyStringFormat.Alignment = StringAlignment.Center '指定居中对齐 g.AddString("Music PlayerV1.0 中文修正版", New FontFamily("华文彩云"), Me.Font.Style, 50, Me.ClientRectangle, MyStringFormat) Me.Region = New Region(g) Me.Refresh() End Sub 最后显示的文字窗体都是有锯齿的 请问如何可以实现抗锯齿显示
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询