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(
: number,
: number,
: number,
: 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
Exception | Description |
| Thrown if arguments have wrong types. |
Browser Compatibility
See Also