mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
add documentation for changes
This commit is contained in:
@@ -152,6 +152,10 @@ Returns a [Buffer][buffer] that contains the image's `PNG` encoded data.
|
||||
|
||||
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.
|
||||
|
||||
#### `image.toDataURL()`
|
||||
|
||||
Returns the data URL of the image.
|
||||
|
||||
Reference in New Issue
Block a user