Dear Sir,
I use ImageEnVect's image area selection function.
When I use the mouse to select an area on the image and also use the 'SelectRect' to read the coordinate value of the area range, but the value obtained is abnormal.
From the results below, it is unlikely that the four coordinate values in the rectangular range are abnormally large.
stru_RECT.Left = ImageEnVect1->SelectedRect.x;
stru_RECT.Top = ImageEnVect1->SelectedRect.y;
stru_RECT.Right = ImageEnVect1->SelectedRect.x +
ImageEnVect1->SelectedRect.width;
stru_RECT.Bottom = ImageEnVect1->SelectedRect.y +
ImageEnVect1->SelectedRect.height;
When I use the manual selection of the image area, why do I get the abnormal coordinate value?
If I use the code to select the area (like this), it can get the coordinate
normally. But, when manually selected areas will get abnormal coordinate values. Why?
ImageEnVect1->Select(650, 670, 850, 1030); // <-- It's OK.
Do I have to ignore something details?
Thanks.
James Lin
2019/01/31