Update the docs to match
authorPaul Betts <paul@paulbetts.org>
Tue, 15 Mar 2016 02:51:37 +0000 (19:51 -0700)
committerPaul Betts <paul@paulbetts.org>
Tue, 15 Mar 2016 02:51:37 +0000 (19:51 -0700)
docs/api/native-image.md

index 2cae12feb472ec7b80c35c09d63d101f4ab2d3c3..c33f35c6fe51ed29a38fbde41e8482c1a1a4ec42 100644 (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()`