VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Wpf.UI Namespace / WpfImageViewer Class / GetFocusedImageRect Method / GetFocusedImageRect(Rect,Boolean,Int32) Method
System.Windows.Rect on the image.
Determines that image in current scale is necessary.
The number of milliseconds to wait for the lock of focused image.



In This Topic
    GetFocusedImageRect(Rect,Boolean,Int32) Method
    In This Topic
    Returns the specified rectangle of focused image.
    Syntax
    'Declaration
     
    Public Overloads Function GetFocusedImageRect( _
       ByVal rect As Rect, _
       ByVal useCurrentZoom As Boolean, _
       ByVal millisecondsTimeout As Integer _
    ) As VintasoftImage
    public VintasoftImage GetFocusedImageRect( 
       Rect rect,
       bool useCurrentZoom,
       int millisecondsTimeout
    )
    public: VintasoftImage* GetFocusedImageRect( 
       Rect rect,
       bool useCurrentZoom,
       int millisecondsTimeout
    ) 
    public:
    VintasoftImage^ GetFocusedImageRect( 
       Rect rect,
       bool useCurrentZoom,
       int millisecondsTimeout
    ) 

    Parameters

    rect
    System.Windows.Rect on the image.
    useCurrentZoom
    Determines that image in current scale is necessary.
    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: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also