开发者

MFC dialog and form

I have a dialog (there are 3 edit controls in order to display 3 colo开发者_运维知识库r channels RGB), I use openCV to open an image in a new form. What I want is when I move the mouse to any point on the image, each of the RGB color values will be shown in 3 edit boxed (on the dialog). How can I do that?

Thanks!!!


Perhaps this will help: OpenCV rgb value for cv::Point in cv::Mat

To get the current cursor position you can use GetCursorPos and eventually ScreenToClient functions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜