EyalAr / lwip

Light Weight Image Processor for NodeJS
MIT License
2.37k stars 231 forks source link

make `image.paste` support use pasted image color only? #296

Open creeperyang opened 7 years ago

creeperyang commented 7 years ago

For example, I have a completely transparent png file (A, size: 32x32), and a normal png file (B, size: 32x32).

A.paste(0,0,B, (err, newImg) => {
  // newImg's color data should equal B's color data
})

Currently, the newImg has different color data.