|
hai 2 meses | |
---|---|---|
.. | ||
es | hai 2 meses | |
src | hai 2 meses | |
test | hai 2 meses | |
CHANGELOG.md | hai 2 meses | |
LICENSE | hai 2 meses | |
README.md | hai 2 meses | |
index.d.ts | hai 2 meses | |
package.json | hai 2 meses |
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();