Click or drag to resize

AtalaImageViewerCenterInViewer 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.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public void CenterInViewer(
	Rect imageRect,
	bool zoomToFit
)

Parameters

imageRect
Type: System.WindowsRect
The rectangle to center.
zoomToFit
Type: SystemBoolean
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