1.0.0 • Published 7 years ago
img-extract v1.0.0
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 typeCanvasImageSourcex: 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
1.0.0
7 years ago
