Add nativeImage.createEmpty()

This commit is contained in:
Cheng Zhao 2015-02-12 13:55:45 +08:00
parent 8093300a43
commit b9f6d6dffc
3 changed files with 11 additions and 0 deletions

View file

@ -80,6 +80,10 @@ To mark an image as template image, its filename should end with the word
* `xxxTemplate.png`
* `xxxTemplate@2x.png`
## nativeImage.createEmpty()
Creates a new `NativeImage` instance that contains empty image.
## nativeImage.createFromPng(buffer)
* `buffer` [Buffer][buffer]