adds bitmap support to createFromBuffer

This commit is contained in:
gellert 2016-12-10 00:12:36 +01:00
parent 3290c6b335
commit 39875c90f1
3 changed files with 30 additions and 5 deletions

View file

@ -25,6 +25,9 @@ describe('nativeImage module', () => {
const imageC = nativeImage.createFromBuffer(imageA.toJPEG(100))
assert.deepEqual(imageC.getSize(), {width: 538, height: 190})
const imageD = nativeImage.createFromBuffer(imageA.toBitmap(), 538, 190)
assert.deepEqual(imageD.getSize(), {width: 538, height: 190})
})
})