VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.UI.VisualTools Namespace / WebHighlightObjectJS type / createObjectFromRectangle Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    createObjectFromRectangle Method
    In This Topic
    Creates a highlight object based on rectangle.
    Syntax
    var instance = new Vintasoft.Imaging.UI.VisualTools.WebHighlightObjectJS(polygon);
    
    var value; // Type: Vintasoft.Imaging.UI.VisualTools.WebHighlightObjectJS
    
    // Parameters
    var rect; // Type: object
    
    value = instance.createObjectFromRectangle(rect);
    
    
    function createObjectFromRectangle(
    rect
    Rectangle that defines image region which should be highlighted in the image viewer.
    : object
    ) : WebHighlightObjectJS;

    Parameters

    rect
    Rectangle that defines image region which should be highlighted in the image viewer.

    Return Value

    Object (instance of the WebHighlightObjectJS class) that defines image region which should be highlighted in the image viewer.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Browser Compatibility
    56+
    45+
    11
    See Also