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);
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
| Exception | Description |
| Thrown if argument has wrong type. |
Browser Compatibility
See Also