From 98d4e186e35974c5e7d73f661b3022b756dbe6b2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 14 Dec 2016 10:19:38 -0800 Subject: [PATCH] Move details next to params --- docs/api/native-image.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/api/native-image.md b/docs/api/native-image.md index 4ba3498..a1f6614 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -141,15 +141,13 @@ console.log(image) * `buffer` [Buffer][buffer] * `options` Object (optional) - * `width` Integer (optional) - * `height` Integer (optional) - * `scaleFactor` Double (optional) + * `width` Integer (optional) - Required for bitmap buffers. + * `height` Integer (optional) - Required for bitmap buffers. + * `scaleFactor` Double (optional) - Defaults to 1.0. Returns `NativeImage` -Creates a new `NativeImage` instance from `buffer`. The default `scaleFactor` is -1.0. The `width` and `height` options are **required** and only used for bitmap -buffers. +Creates a new `NativeImage` instance from `buffer`. ### `nativeImage.createFromDataURL(dataURL)` -- 2.7.4