VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.UI Namespace / ImageViewer Class / CalcualteScrollPosition(PointF,PointF) Method
Syntax Remarks Requirements SeeAlso
In This Topic
    CalcualteScrollPosition(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 CalcualteScrollPosition( _
    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 CalcualteScrollPosition(
    System.Drawing.PointF currentScrollPosition,
    System.Drawing.PointF offset
    )
    public: System.Drawing.PointF CalcualteScrollPosition(
    System.Drawing.PointF currentScrollPosition,
    System.Drawing.PointF offset
    )
    public:
    System.Drawing.PointF CalcualteScrollPosition(
    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: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also