AtalaImageViewer.CenterInViewer Method (Rect, Boolean) |
Centers a rectangle, optionally changing the zoom level to fit the rectangle within the viewer.
Namespace:
Atalasoft.Imaging.Wpf
Assembly:
Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntaxpublic void CenterInViewer(
Rect imageRect,
bool zoomToFit
)
Public Sub CenterInViewer (
imageRect As Rect,
zoomToFit As Boolean
)
Parameters
- imageRect
- Type: System.Windows.Rect
The rectangle to center. - zoomToFit
- Type: System.Boolean
If true, the zoom level will be modified to fit the entire rectangle
within the viewer. Setting this to false may not show the entire rectangular area within the
viewer.
See Also