CRect rect;

然后 获取矩形控件。那么这个矩形控件的左上 和右下 分别对应,left,top;right,bottom。

left,top为左上角的点坐标

right,bottom为右下角的点坐标

转换一下为opencv常用的:

x=left

y=top

width=right-left

height=bottom-top 

 

MFC:pic控件的矩形的left、right、top、bottom 坐标位置

 

相关文章: