| ImageGearJava Project > com.accusoft.imagegear.display Package > IImGearPageDisplay Interface : zoomToRectangle Method |
This method calculates the zoom and scroll values, so that the specified rectangle is fitted to ClipRect and zoom image is fitted to the rectangle calculated. For both horizontal and vertical zoom attributes, it sets ImGearZoomComponentInfo. Fixed field to true, calculates and modifies ImGearZoomComponentInfo. Value field, the horizontal and vertical scroll positions, and returns new instance of ImGearZoomInfo object with new zoom attributes.
void zoomToRectangle( IImGearScrollableView pageView, ImGearRectangle rect ) |