mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
toPng/toJpeg -> toPNG/toJPEG
This commit is contained in:
@@ -127,11 +127,11 @@ Creates a new `nativeImage` instance from `dataURL`.
|
||||
|
||||
The following methods are available on instances of `nativeImage`:
|
||||
|
||||
### `image.toPng()`
|
||||
### `image.toPNG()`
|
||||
|
||||
Returns a [Buffer][buffer] that contains the image's `PNG` encoded data.
|
||||
|
||||
### `image.toJpeg(quality)`
|
||||
### `image.toJPEG(quality)`
|
||||
|
||||
* `quality` Integer (**required**) - Between 0 - 100.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user