畫我想畫的圖片框和我的代碼如下:座標上PictureBox的Image
List<IntPoint> edgePoints;
List<IntPoint> corners;
AForge.Imaging.Blob[] blobs = blobCounter.GetObjectsInformation();
Graphics g = Graphics.FromImage(pictureBox2.Image);
Pen bluePen = new Pen(Color.Blue, 5);
double[] blobAdjustedSize = new double[blobs.Length];
for (int i = 0, n = blobs.Length; i < n; i++)
{
edgePoints = blobCounter.GetBlobsEdgePoints(blobs[i]);
corners = PointsCloud.FindQuadrilateralCorners(edgePoints);
g.DrawPolygon(bluePen, corners); // **UNDERLINE**
}
而且我得到一個錯誤。下劃線爲g.DrawPolygon(bluePen, corners)
。
錯誤是:
爲System.Drawing.Graphics.DrawPolygon最好重載的方法匹配(System.Drawing.Pen來,System.Drawing.Point [])」有一些無效參數
錯誤提到它。您沒有提供更正參數。 – Guanxi