|
3 weeks ago | |
---|---|---|
.. | ||
es | 3 weeks ago | |
src | 3 weeks ago | |
test | 3 weeks ago | |
CHANGELOG.md | 3 weeks ago | |
LICENSE | 3 weeks ago | |
README.md | 3 weeks ago | |
index.d.ts | 3 weeks ago | |
package.json | 3 weeks ago |
Blit - a data operation commonly used in computer graphics in which several bitmaps are combined into one using a boolean function.
Blits a source image on to this image
@param {function(Error, Jimp)} cb (optional) a callback for when complete
import jimp from 'jimp';
async function main() {
const image = await jimp.read('test/image.png');
const parrot = await jimp.read('test/party-parrot.png');
image.blit(parrot, x, y);
}
main();