VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.UI Namespace / ImageViewer Class / GetImageRect Method
The image.
System.Drawing.Rectangle on the image.
Determines that image in current scale is necessary.



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

    Parameters

    image
    The image.
    rect
    System.Drawing.Rectangle on the image.
    useCurrentZoom
    Determines that image in current scale is necessary.

    Return Value

    Specified 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