Je suis en train de tirer sur picturebox et mon code est ci-dessous:dessin sur 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**
}
Et je reçois une erreur. g.DrawPolygon(bluePen, corners)
est souligné.
L'erreur est:
Le match de la meilleure méthode surchargée pour System.Drawing.Graphics.DrawPolygon (System.Drawing.Pen, System.Drawing.Point []) » a des arguments invalides
erreur mentionne il. Vous ne fournissez pas de paramètres de correction. – Guanxi