VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Wpf.UI Namespace / WpfImageViewer Class / GetImageRect Method
The image.
System.Windows.Rect on the image.
Determines that image in current scale is necessary.



In This Topic
    GetImageRect Method (WpfImageViewer)
    In This Topic
    Returns the rectangle of specified image.
    Syntax
    'Declaration
     
    Public Function GetImageRect( _
       ByVal image As VintasoftImage, _
       ByVal rect As Rect, _
       ByVal useCurrentZoom As Boolean _
    ) As VintasoftImage
    public VintasoftImage GetImageRect( 
       VintasoftImage image,
       Rect rect,
       bool useCurrentZoom
    )
    public: VintasoftImage* GetImageRect( 
       VintasoftImage* image,
       Rect rect,
       bool useCurrentZoom
    ) 
    public:
    VintasoftImage^ GetImageRect( 
       VintasoftImage^ image,
       Rect rect,
       bool useCurrentZoom
    ) 

    Parameters

    image
    The image.
    rect
    System.Windows.Rect on the image.
    useCurrentZoom
    Determines that image in current scale is necessary.

    Return Value

    Rectangle of focused image or null.
    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