Mention createFromPath failure cases
This commit is contained in:
parent
c2c48c4079
commit
546c0e7822
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ Creates an empty `NativeImage` instance.
|
|||
|
||||
* `path` String
|
||||
|
||||
Creates a new `NativeImage` instance from a file located at `path`.
|
||||
Creates a new `NativeImage` instance from a file located at `path`. This method
|
||||
returns an empty image if the `path` does not exist, cannot be read, or is not
|
||||
a valid image.
|
||||
|
||||
```javascript
|
||||
const nativeImage = require('electron').nativeImage
|
||||
|
|
Loading…
Reference in a new issue