From b5c19a9c6db3dc6e474d7e12741170bed5143f31 Mon Sep 17 00:00:00 2001 From: Heilig Benedek Date: Thu, 4 Aug 2016 19:45:06 +0200 Subject: [PATCH] update docs --- docs/api/native-image.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/api/native-image.md b/docs/api/native-image.md index d0c9a3b62f..c78b1d636f 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -163,12 +163,17 @@ Returns a [Buffer][buffer] that contains the image's `JPEG` encoded data. #### `image.toBitmap()` -Returns a [Buffer][buffer] that contains the image's raw pixel data. +Returns a [Buffer][buffer] that contains a copy of the image's raw pixel data. #### `image.toDataURL()` Returns the data URL of the image. +#### `image.getBitmap()` + +Returns a [Buffer][buffer] that contains the image's raw pixel data. The pixel +data is not owned by the `Buffer` object. + #### `image.getNativeHandle()` _macOS_ Returns a [Buffer][buffer] that stores C pointer to underlying native handle of