Docs: Correct image.getSize() type signature

This commit is contained in:
Dave Jeffery 2016-10-04 21:20:42 +01:00 committed by GitHub
parent 4c2590ed92
commit 4d10b9a31b

View file

@ -195,15 +195,17 @@ Notice that the returned pointer is a weak pointer to the underlying native
image instead of a copy, so you _must_ ensure that the associated image instead of a copy, so you _must_ ensure that the associated
`nativeImage` instance is kept around. `nativeImage` instance is kept around.
[buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer
#### `image.isEmpty()` #### `image.isEmpty()`
Returns `Boolean` - Whether the image is empty. Returns `Boolean` - Whether the image is empty.
#### `image.getSize()` #### `image.getSize()`
Returns `Integer[]` - The size of the image. Returns `Object`:
* `width` Integer
[buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer * `height` Integer
#### `image.setTemplateImage(option)` #### `image.setTemplateImage(option)`