rextract.js
v0.2.2
Published
Rextract JS is an image Region Extraction library. HTML5 based image processing library which helps automatically detect regions of the image to extract.
Downloads
15
Readme
rExtract (region extract)
Rextract JS is an image Region Extraction library. HTML5 based image processing library which helps automatically detect regions of the image to extract. Usually for sprite creation automation process, and custom sprite editors.
Live demo
Usage
Create rExtractor.
new Rextract(imageElement, [hexColor])
.detectAll()
Returns : Array of Rect elements or null
Find all the images inside.
.detectRegion(x, y)
Returns : Rect element or null
Find image at specified position