Update code example
This commit is contained in:
parent
a5969fd076
commit
2c6210cf9c
1 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,9 @@ Creates a new `NativeImage` instance from `dataUrl`.
|
||||||
The following methods are available on instances of `nativeImage`
|
The following methods are available on instances of `nativeImage`
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var image = nativeImage.createFromPath('/Users/somebody/images/icon.png')
|
var NativeImage = require('native-image');
|
||||||
|
|
||||||
|
var image = NativeImage.createFromPath('/Users/somebody/images/icon.png');
|
||||||
```
|
```
|
||||||
|
|
||||||
### `image.toPng()`
|
### `image.toPng()`
|
||||||
|
|
Loading…
Reference in a new issue