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

Public Overloads Function GetFocusedImageRect( _
ByVal rect As System.Drawing.Rectangle, _
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 visible image.
As System.Int32 _
) As Vintasoft.Imaging.VintasoftImage

Parameters

rect
System.Drawing.Rectangle 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 visible 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 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