vb.net 中如何在窗体中画个圆,用circle语句能不能简单举个例子?谢谢 vb.net 中如何在窗体中画个圆,用circle语句能不能简单举个例子?谢谢 __________________________________________________________________________ 请大侠们帮帮忙 __________________________________________________________________________ 看教材中的GDI+绘图 __________________________________________________________________________ Circle是6.0中的
方法,以下是画一个圆的
代码,您可以研究一下看看,呵呵。 Private Sub Form1_Paint(ByVal sender As Object,ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Me.CreateGraphics.DrawArc(New Pen(Color.Black),100,50,360) End Sub __________________________________________________________________________ Imports System.Drawing Din g As New Graphics g.DrawEllipse(New Pen(Color.Red,3),20,40,20) __________________________________________________________________________ Imports System.Drawing Dim g As Graphics g = Me.CreateGraphics g.DrawEllipse(New Pen(Color.Red,1),10,15,25) __________________________________________________________________________ Me.CreateGraphics().DrawEllipse(New Pen(Color.Red,20) //以(10,10)为圆心,10为半径的圆 __________________________________________________________________________