zhangyuanwei / node-images

Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Nodejs
https://npmjs.org/package/images
MIT License
1.55k stars 204 forks source link

Draw image on negative coordinate #245

Open rafinskipg opened 2 years ago

rafinskipg commented 2 years ago

Hello, i want to draw an image translated 10 pixels to the top, so i am using a negative coordinate:

.draw(image, 0, -10)

But it does not work, is there any way to translate images to the top?