如何计算封闭曲线的面积?测试数据Dim Tmp_B As New Bitmap(PictureBox1.Width, PictureBox1.Height)Dim t_
如何计算封闭曲线的面积? 测试数据
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