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.
This is very easy to accomplish:
1. Get the displayed area after zooming using GdViewer.GetDisplayedArea http://guides.gdpicture.com/content/GdP ... dArea.html
2. Copy that region to a new GdPictureImage identifier using GdViewer.CopyRegionToGdPictureImage
http://guides.gdpicture.com/content/GdP ... Image.html
I hope this helps.
Who is online
Users browsing this forum: No registered users and 2 guests