Extracts pixel data from an HTMLImageElement as an ImageData.
Image element to read. Must have a valid src and non-zero dimensions.
FailedToLoadImageError if the image fails to load.
EmptyImageError if the image has zero width or height.
Extracts pixel data from an HTMLImageElement as an ImageData.