mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-24 11:56:08 +08:00
Add nativeImage.createEmpty()
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user