Click or drag to resize

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)
Syntax
public void CenterInViewer(
	Rect imageRect,
	bool zoomToFit
)

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