VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.Wpf.UI Namespace / WpfImageViewer Class / GetFocusedImageRect Methods / GetFocusedImageRect(Rect,Boolean,Int32) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
GetFocusedImageRect(Rect,Boolean,Int32) Method (WpfImageViewer)
In This Topic
Returns the specified rectangle of focused image.
Syntax
'Declaration

Public Overloads Function GetFocusedImageRect( _
ByVal rect
System.Windows.Rect on the image.
As System.Windows.Rect, _
ByVal useCurrentZoom
A value indicating whether to use the image in current scale.
As Boolean, _
ByVal millisecondsTimeout
The number of milliseconds to wait for the lock of focused image.
As System.Int32 _
) As Vintasoft.Imaging.VintasoftImage

Parameters

rect
System.Windows.Rect on the image.
useCurrentZoom
A value indicating whether to use the image in current scale.
millisecondsTimeout
The number of milliseconds to wait for the lock of focused image.

Return Value

Specified rectangle of focused image.
Exceptions
ExceptionDescription
Thrown if rect is not fully contained within the image rectangle.
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