mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
update docs
This commit is contained in:
committed by
Cheng Zhao
parent
37f5ef5712
commit
b5c19a9c6d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user