VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.ImageProcessing Namespace / WebResizeCanvasCommandJS type / set_ImagePosition Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
set_ImagePosition Method
In This Topic
Sets the image position on new canvas.
Syntax
var instance = new Vintasoft.Imaging.ImageProcessing.WebResizeCanvasCommandJS();

var returnValue; // Type: any

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

returnValue = instance.set_ImagePosition(x, y);

Parameters

x
X axis. Default value is 0.
y
Y axis. Default value is 0.
Exceptions
ExceptionDescription
Thrown if arguments have wrong types.
Browser Compatibility
56+
45+
11
See Also