Hi,
I have a search function, where I draw region around the word that matches search criteria. How do I center on the region?
I am using GDPICTURE 8.5
Rgds
Charu
FOCUS ON DRAWN REGION
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: FOCUS ON DRAWN REGION
Hi,
It depends, whether you are using the RectangleOfSelection of the Highlighted Regions.
If the first, all you have to do is call the following method:
https://www.gdpicture.com/guides/gdpicture/v9/html/con ... nRect.html
if the latter, you have to get the position of region using the four functions:
GetRegionLeftPixels
GetRegionTopPixels
GetRegionWidthPixels
GetRegionHeightPixels
set a Rectangle on the document using:
SetRectCoordinatesOnDocument
Then Call the CenterOnRect function.
Hope this helps.
Best Regards,
Sami
It depends, whether you are using the RectangleOfSelection of the Highlighted Regions.
If the first, all you have to do is call the following method:
https://www.gdpicture.com/guides/gdpicture/v9/html/con ... nRect.html
if the latter, you have to get the position of region using the four functions:
GetRegionLeftPixels
GetRegionTopPixels
GetRegionWidthPixels
GetRegionHeightPixels
set a Rectangle on the document using:
SetRectCoordinatesOnDocument
Then Call the CenterOnRect function.
Hope this helps.
Best Regards,
Sami
Who is online
Users browsing this forum: No registered users and 2 guests