VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.ImageProcessing Namespace / WebImageProcessingCommandWithRegionAndSourceChangeJS type / setRegion Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    setRegion Method
    In This Topic
    Sets an image region, which should be processed by the image processing command.
    Syntax
    var instance = new Vintasoft.Imaging.ImageProcessing.WebImageProcessingCommandWithRegionAndSourceChangeJS();
    
    var value; // Type: any
    
    // Parameters
    var x; // Type: number
    var y; // Type: number
    var width; // Type: number
    var height; // Type: number
    
    value = instance.setRegion(x, y, width, height);
    
    
    function setRegion(
    x
    Coordinate of the left top corner of the rectangular region of interest. Valid value is 0 and any positive value. Default value is 0.
    : number,
    y
    Coordinate of the left top corner of the rectangular region of interest. Valid value is 0 and any positive value. Default value is 0.
    : number,
    width
    Width of the rectangular region of interest. Valid value is 0 and any positive value. Default value is 0.
    : number,
    height
    Height of the rectangular region of interest. Valid value is 0 and any positive value. Default value is 0.
    : number
    ) : any;

    Parameters

    x
    Coordinate of the left top corner of the rectangular region of interest. Valid value is 0 and any positive value. Default value is 0.
    y
    Coordinate of the left top corner of the rectangular region of interest. Valid value is 0 and any positive value. Default value is 0.
    width
    Width of the rectangular region of interest. Valid value is 0 and any positive value. Default value is 0.
    height
    Height of the rectangular region of interest. Valid value is 0 and any positive value. Default value is 0.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Browser Compatibility
    56+
    45+
    11
    See Also