VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.Wpf.UI Namespace / WpfImageViewer Class / CalculateScrollPosition(Point,Point) Method
Syntax Remarks Requirements SeeAlso
In This Topic
CalculateScrollPosition(Point,Point) Method (WpfImageViewer)
In This Topic
Calculates new scroll position by moving the specified scroll position on specified offset in viewer space.
Syntax
'Declaration

Public Function CalculateScrollPosition( _
ByVal currentScrollPosition
The image viewer scroll position in scroll bar space.
As System.Windows.Point, _
ByVal offset
The scroll offset in viewer space.
As System.Windows.Point _
) As System.Windows.Point
public System.Windows.Point CalculateScrollPosition(
System.Windows.Point currentScrollPosition,
System.Windows.Point offset
)

Parameters

currentScrollPosition
The image viewer scroll position in scroll bar space.
offset
The scroll offset in viewer space.

Return Value

The new scroll position by moving the specified scroll position on specified offset in viewer space.
Remarks

This method should be used if you want to develop custom logic for scrolls of image viewer.

Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also