Gets or sets the source HTML5 canvas image data.
Object.defineProperty(ImageProcessing.prototype, 'imageData',
get: function(),
set: function(value)
)
imageData: ImageData;
The source HTML5 canvas image data for the image processing.
Since ImageProcessing uses HTML5 web workers, the source image data passed to ImageProcessing.ImageData cannot be manipulated directly. Instead, you must subscribe to the ImageProcessing.Completed to obtain the result image data object.
Note that you can pass the whole or portion of the canvas area to the command by using the context.getImageData(left, top, width, height)
and
context.putImageData(left, top)
.
For an example, refer to ImageProcessing.