mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add createFromBuffer to planned breaking changes
This commit is contained in:
@@ -69,6 +69,13 @@ nativeImage.toPNG()
|
||||
nativeImage.toJpeg()
|
||||
// Replace with
|
||||
nativeImage.toJPEG()
|
||||
|
||||
// Deprecated
|
||||
nativeImage.createFromBuffer(buffer, 1.0)
|
||||
// Replace with
|
||||
nativeImage.createFromBuffer(buffer, {
|
||||
scaleFactor: 1.0
|
||||
})
|
||||
```
|
||||
|
||||
## `process`
|
||||
|
||||
Reference in New Issue
Block a user