AtalaImageViewerCenterInViewer Method (Point) |
Scrolls the image to center a pixel within the viewer (if possible).
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(
Point imagePixel
)
Public Sub CenterInViewer (
imagePixel As Point
)
Parameters
- imagePixel
- Type: System.WindowsPoint
The pixel to center.
Remarks The pixel provided cannot always be centered in the viewer. For example, passing in point {0, 0} will
show that pixel at the top left corner of the viewer because the image cannot be scrolled past this point.
See Also