moves bitmap parameters to options object
This commit is contained in:
parent
39875c90f1
commit
a609e52a14
3 changed files with 16 additions and 10 deletions
|
@ -26,7 +26,8 @@ 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)
|
||||
const imageD = nativeImage.createFromBuffer(imageA.toBitmap(),
|
||||
{width: 538, height: 190})
|
||||
assert.deepEqual(imageD.getSize(), {width: 538, height: 190})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue