16,554
社区成员
发帖
与我相关
我的任务
分享
Dim Tmp_B As New Bitmap(PictureBox1.Width, PictureBox1.Height)
Dim t_Graphics As Graphics = Graphics.FromImage(Tmp_B)
Dim myArray As Point() = {New Point(20, 100), New Point(40, 150), New Point(60, 125), New Point(40, 100), New Point(60, 75), New Point(40, 50)} '举例数据
Dim myPath As New System.Drawing.Drawing2D.GraphicsPath
myPath.AddClosedCurve(myArray, 0.5F)
Dim myPen As New Pen(Color.Black, 2)
t_Graphics.DrawPath(myPen, myPath)
PictureBox1.Image = Tmp_B