VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.UI Namespace / ImageViewer Class / RectangleToControl Method
The image System.Drawing.RectangleF to convert.



In This Topic
    RectangleToControl Method
    In This Topic
    Converts the rectangle from the image coordinates to the control coordinates.
    Syntax
    'Declaration
     
    Public Function RectangleToControl( _
       ByVal imageRect As RectangleF _
    ) As RectangleF
    public RectangleF RectangleToControl( 
       RectangleF imageRect
    )
    public: RectangleF RectangleToControl( 
       RectangleF imageRect
    ) 
    public:
    RectangleF RectangleToControl( 
       RectangleF imageRect
    ) 

    Parameters

    imageRect
    The image System.Drawing.RectangleF to convert.

    Return Value

    Rectangle in control coordinates.
    Exceptions
    ExceptionDescription
    Thrown if viewer does not contain image.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also