Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# OpenCV
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)
but in this PictureBoxIpl I cant find the PictureBoxIpl.OnMouseCallback method.
Posted 1-Apr-12 3:57am
Edited 1-Apr-12 4:01am
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Since it looks like the control is inherited from PictureBox you should be able to use normal PictureBox events, such as: Control.MouseMove Event[^]
  Permalink  
Comments
nagyervin89 at 1-Apr-12 9:15am
   
I think You'r right I try it!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 295
1 DamithSL 265
2 CPallini 235
3 Maciej Los 190
4 George Jonsson 170
0 OriginalGriff 5,415
1 DamithSL 4,422
2 Maciej Los 3,820
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,911


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 1 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100