コード例 #1
0
 public void DrawRectangle(System.Drawing.Rectangle rect, System.Drawing.Color color, int thickness, int lineType, int shift)
 {
     PInvoke.cvRectangle(
         image,
         new __CvPoint(rect.Left, rect.Top),
         new __CvPoint(rect.Right, rect.Bottom),
         new __CvScalar(color.R, color.G, color.B, 0), thickness, lineType, shift);
     CVUtils.CheckLastError();
 }