VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.UI Namespace / ImageViewer Class / CalculateScrollPosition(PointF,PointF) Method
Syntax Remarks Requirements SeeAlso
In This Topic
CalculateScrollPosition(PointF,PointF) Method (ImageViewer)
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.Drawing.PointF, _
ByVal offset
The scroll offset in viewer space.
As System.Drawing.PointF _
) As System.Drawing.PointF
public System.Drawing.PointF CalculateScrollPosition(
System.Drawing.PointF currentScrollPosition,
System.Drawing.PointF 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 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also