VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.ImageProcessing Namespace / WebDrawImageCommandJS type / set_SourceRect Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
set_SourceRect Method
In This Topic
Sets the rectangle, in pixels, on the overlay image, which should be drawn on source image.
Syntax
var instance = new Vintasoft.Imaging.ImageProcessing.WebDrawImageCommandJS();

var returnValue; // Type: any

// Parameters
var x; // Type: number
var y; // Type: number
var w; // Type: number
var h; // Type: number

returnValue = instance.set_SourceRect(x, y, w, h);

Parameters

x
Coordinate of the left top corner of the rectangle. Valid value is 0 and any positive value. Default value is 0.
y
Coordinate of the left top corner of the rectangle. Valid value is 0 and any positive value. Default value is 0.
w
Width of the rectangle. Valid value is 0 and any positive value. Default value is 0.
h
Height of the rectangle. 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