img-extract
v1.0.0
Published
tiny subimage extractor
Downloads
2
Maintainers
Readme
img-extract
tiny subimage extractor
usage
extract(image, x, y, width, height) -> canvas
Extracts a canvas
from the provided image
and x
, y
, width
, height
region.
image
: The source image of typeCanvasImageSource
x
: The x-coordinate offset of the subimage in pixelsy
: The y-coordinate offset of the subimage in pixelswidth
: The width of the subimage in pixelsheight
: The height of the subimage in pixelscanvas
: The subimage, of typeHTMLCanvasElement