SetZoom Similar function in Gdpicture.net
-
- Posts: 3
- Joined: Thu Jun 28, 2012 4:07 am
SetZoom Similar function in Gdpicture.net
HI,
I have 2 gdviewer control to display 2 different images. I need to zoom these 2 images simultaneously. Now i can only use the ZoomIn / ZoomOut function to zoom this 2 images at the same time. But when i change the gdViewer1 control mousemode to autoZoom mode, i can zoom the gdviewer1 image but i am unable to zoom the gdviewer 2 image.
There is a Function name SetZoom(zoompercentage as integer) for previous Gdpicture Pro toolkit where i am currently using. So my question is how can i zoom 2 images simultaneously when i using autozoom mode..
I have 2 gdviewer control to display 2 different images. I need to zoom these 2 images simultaneously. Now i can only use the ZoomIn / ZoomOut function to zoom this 2 images at the same time. But when i change the gdViewer1 control mousemode to autoZoom mode, i can zoom the gdviewer1 image but i am unable to zoom the gdviewer 2 image.
There is a Function name SetZoom(zoompercentage as integer) for previous Gdpicture Pro toolkit where i am currently using. So my question is how can i zoom 2 images simultaneously when i using autozoom mode..
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: SetZoom Similar function in Gdpicture.net
Hi,
It is simple, can be done in three steps:
1. GdViewer1, once you autozoom you need to get the RECT coordinates:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... teger.html
2. GdViewer2, set those coordinates to make an ROI on GdViewer2:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... teger.html
3. GdViewer2 ZoomToRect:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... mRect.html
Hope this helps.
Best Regards,
Sami
It is simple, can be done in three steps:
1. GdViewer1, once you autozoom you need to get the RECT coordinates:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... teger.html
2. GdViewer2, set those coordinates to make an ROI on GdViewer2:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... teger.html
3. GdViewer2 ZoomToRect:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... mRect.html
Hope this helps.
Best Regards,
Sami
-
- Posts: 3
- Joined: Thu Jun 28, 2012 4:07 am
Re: SetZoom Similar function in Gdpicture.net
Hi Sami,
Thank For your Reply...
But the problem is the GetRecCoordinates Function only will return value when you set the mouse mode = area selection.
So for my case, when my mouse mode = auto zoom, even there is a area selection but the GetRecCoordinates Function doesn't return me any value..
Please advice again...
Thank For your Reply...
But the problem is the GetRecCoordinates Function only will return value when you set the mouse mode = area selection.
So for my case, when my mouse mode = auto zoom, even there is a area selection but the GetRecCoordinates Function doesn't return me any value..
Please advice again...
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: SetZoom Similar function in Gdpicture.net
Hi,
You are right, there is a function for that:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... teger.html
Best Regards,
Sami
You are right, there is a function for that:
https://www.gdpicture.com/guides/gdpicture/v8/html/con ... teger.html
Best Regards,
Sami
Who is online
Users browsing this forum: No registered users and 0 guests