Hi Loic,
Can I crop an image on a GDViewer after zooming in with the exact size of the GDViewer? For example, I have an image of 400px height and 300px width loaded onto GDViewer. Then I use GDViewer.SetZoomWidthViewer(). What I need is how to make the size of the image equal zooming visibility on GDViewer control.
Thank you.
Crop Image After Zooming
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Crop Image After Zooming
Hi,
This is very easy to accomplish:
1. Get the displayed area after zooming using GdViewer.GetDisplayedArea https://www.gdpicture.com/guides/gdpicture/GdP ... dArea.html
2. Copy that region to a new GdPictureImage identifier using GdViewer.CopyRegionToGdPictureImage
https://www.gdpicture.com/guides/gdpicture/GdP ... Image.html
I hope this helps.
Best,
Sami
This is very easy to accomplish:
1. Get the displayed area after zooming using GdViewer.GetDisplayedArea https://www.gdpicture.com/guides/gdpicture/GdP ... dArea.html
2. Copy that region to a new GdPictureImage identifier using GdViewer.CopyRegionToGdPictureImage
https://www.gdpicture.com/guides/gdpicture/GdP ... Image.html
I hope this helps.
Best,
Sami
Who is online
Users browsing this forum: No registered users and 1 guest