From f19998ef4c7ac77aa55e4f2cc5e30fe97fa9de14 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 9 Mar 2017 10:12:03 -0800 Subject: [PATCH] Add more default values --- docs/api/native-image.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/api/native-image.md b/docs/api/native-image.md index 69658d6f87b..100fb0e1a22 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -247,8 +247,8 @@ Returns `NativeImage` - The cropped image. #### `image.resize(options)` * `options` Object - * `width` Integer (optional) - * `height` Integer (optional) + * `width` Integer (optional) - Defaults to the image's width. + * `height` Integer (optional) - Defaults to the image's height * `quality` String (optional) - The desired quality of the resize image. Possible values are `good`, `better` or `best`. The default is `best`. These values express a desired quality/speed tradeoff. They are translated @@ -269,8 +269,10 @@ Returns `Float` - The image's aspect ratio. * `options` Object * `scaleFactor` Double - The scale factor to add the image representation for. - * `width` Integer (optional) - * `height` Integer (optional) + * `width` Integer (optional) - Defaults to 0. Required if a bitmap buffer + is specified as `buffer`. + * `height` Integer (optional) - Defaults to 0. Required if a bitmap buffer + is specified as `buffer`. * `buffer` Buffer (optional) - The buffer containing the raw image data. * `dataURL` String (optional) - The data URL containing either a base 64 encoded PNG or JPEG image.