本文介绍了PictureBoxIpl上的OpencvSharp鼠标事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我正在WinForms应用程序上工作,在该应用程序中,我必须在图像上执行多个不同的任务.

我制作了一个WinForms,可以在其中加载图像,并可以在PictureBoxIpl中显示这些图像.此PictureBoxIpl由opencvsharps Userinterface.dll制成.该应用程序运行良好,我可以加载图像.
我想实现可以用鼠标在此PictureBoxIpl中标记正方形,但是我不知道如何跟踪"
PictureBoxIpl内部的鼠标移动.
如果您知道,请告诉我执行此操作的方法是什么.
我以为会是这样:

Hi Everyone!

Im workin on a WinForms application, in which I have to perform multiple different tasks on images.

I made a WinForms where I can load images and I can display these imaes in a PictureBoxIpl. This PictureBoxIpl is made by the opencvsharps Userinterface.dll.
The application is working nicely, I can load the images.
I want to achieve that I can mark squares in this PictureBoxIpl with the mouse, but I dont know how to "track"
the mouse movements inside PictureBoxIpl.
If you know, please tell me which are the methods to perform this operation.
I thought it would be something like this :

wImage.OnMouseCallback += delegate(MouseEvent ev, int x, int y, MouseEvent flags)


但是在此PictureBoxIpl 中,我找不到PictureBoxIpl.OnMouseCallback方法.


but in this PictureBoxIpl I cant find the PictureBoxIpl.OnMouseCallback method.

推荐答案


这篇关于PictureBoxIpl上的OpencvSharp鼠标事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 10:26