- get(data, callback)
-
Asynchronously get an
ImageData
instance based on provided data -
getSync(image) ⇒
ImageData
-
Synchronously get an
ImageData
instance based on provided image
Asynchronously get an ImageData
instance based on provided data
Throws:
Error
If the data argument is not a string, HTMLImageElement, File or BlobError
If the callback argument is not a function
Argument | Type |
---|---|
data | string | HTMLImageElement | File | Blob |
callback | function |
Synchronously get an ImageData
instance based on provided image
Throws:
Error
If the image argument is not an HTMLImageElementError
If the image has not completed loading
Argument | Type |
---|---|
image | HTMLImageElement |