VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.ImageProcessing Namespace / WebMatrixTransformCommandJS type / set_CropRect Method
X axis.
Y axis.
Width.
Height.
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(successFunc, errorFunc);
    var value; // Type: any
    
    // Parameters
    var x; // Type:  number
    var y; // Type:  number
    var w; // Type:  number
    var h; // Type:  number
    
    value = instance.set_CropRect(x, y, w, h);
    function set_CropRect( 
       x : number,
       y : number,
       w : number,
       h : number
    ) : any;

    Parameters

    x
    X axis.
    y
    Y axis.
    w
    Width.
    h
    Height.
    Browser Compatibility
    9
    5
    15
    5
    See Also