VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebRectangleAnnotationViewJS type / setRectangle Property
Syntax BrowserCompatibility SeeAlso
In This Topic
    setRectangle Method
    In This Topic
    Sets the rectangle of interaction object.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.UI.WebRectangleAnnotationViewJS();
    
    var value; // Type: any
    
    // Parameters
    var x0; // Type: number
    var y0; // Type: number
    var x1; // Type: number
    var y1; // Type: number
    
    value = instance.setRectangle(x0, y0, x1, y1);
    
    
    function setRectangle(
    x0
    X-coordinate of left-top point.
    : number,
    y0
    Y-coordinate of left-top point.
    : number,
    x1
    X-coordinate of right-bottom point.
    : number,
    y1
    Y-coordinate of right-bottom point.
    : number
    ) : any;

    Parameters

    x0
    X-coordinate of left-top point.
    y0
    Y-coordinate of left-top point.
    x1
    X-coordinate of right-bottom point.
    y1
    Y-coordinate of right-bottom point.
    Browser Compatibility
    56+
    45+
    11
    See Also