Update code example

This commit is contained in:
Jessica Lord 2015-08-30 20:52:37 -07:00
parent a5969fd076
commit 2c6210cf9c

View file

@ -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()`