为了账号安全,请及时绑定邮箱和手机立即绑定

模棱两可的参考错误?

模棱两可的参考错误?

C#
一只名叫tom的猫 2021-06-29 03:05:14
在使用canny过滤器检测到最大轮廓后,我现在只想提取其中存在的内容。Rectangle rect = CvInvoke.BoundingRectangle(contours[largest_contour_index]);            Bitmap target = new Bitmap(rect.Width, rect.Height);using (Graphics g = Graphics.FromImage(target)){    g.DrawImage(imageInput, new Rectangle(0, 0, target.Width, target.Height),                rect, GraphicsUnit.Pixel);}imageBox2.Image = imageInput;我收到此错误:错误 CS0104 'Graphics' 是 'System.Drawing.Graphics' 和 'UnityEngine.Graphics' 之间的不明确引用任何想法如何修复?
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 124 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信