Update the docs to match

This commit is contained in:
Paul Betts 2016-03-14 19:51:37 -07:00
parent d344c1e408
commit f59752bf4f

View file

@ -133,12 +133,11 @@ Returns a [Buffer][buffer] that contains the image's `JPEG` encoded data.
Returns the data URL of the image.
### `image.asNativeRepresentation(type)`
### `image.getNativeHandle()`
Returns a pointer to an underlying native type (encoded as a [Buffer][buffer]) which can be used with native APIs. Note that in many cases, this pointer is a weak pointer to the underlying native image not a copy, so you _must_ ensure that the associated `nativeImage` instance is kept around.
* `type` String (**required**) - one of:
* `nsimage` - (OS X only) a pointer to an `NSImage`
Returns a [Buffer][buffer] that represents a pointer to a native type - on OS X, this type is an NSImage object.
### `image.isEmpty()`