VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.ImageProcessing Namespace / WebMatrixTransformCommandJS type / set_CropRect Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    set_CropRect Method
    In This Topic
    Sets the rectangle, in pixels, that defines how to crop image after transformation.
    Syntax
    var instance = new Vintasoft.Imaging.ImageProcessing.WebMatrixTransformCommandJS();
    
    var returnValue; // Type: any
    
    // Parameters
    var x; // Type: number
    var y; // Type: number
    var w; // Type: number
    var h; // Type: number
    
    returnValue = instance.set_CropRect(x, y, w, h);
    
    
    function set_CropRect(
    x
    X axis. Valid value is 0 and any positive value. Default value is 0.
    : number,
    y
    Y axis. Valid value is 0 and any positive value. Default value is 0.
    : number,
    w
    Width. Valid value is 0 and any positive value. Default value is 0.
    : number,
    h
    Height. Valid value is 0 and any positive value. Default value is 0.
    : number
    ) : any;

    Parameters

    x
    X axis. Valid value is 0 and any positive value. Default value is 0.
    y
    Y axis. Valid value is 0 and any positive value. Default value is 0.
    w
    Width. Valid value is 0 and any positive value. Default value is 0.
    h
    Height. 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