refactor: remove redundant NativeImage::GetBitmap() (#46736)
* refactor: remove redundant NativeImage::GetBitmap() Co-authored-by: Charles Kerr <charles@charleskerr.com> * docs: mark NativeImage.getBitmap() as deprecated Co-authored-by: Charles Kerr <charles@charleskerr.com> * have getBitmap() emit a deprecation warning Co-authored-by: David Sanders <dsanders11@ucsbalum.com> * docs: update obsolete refefence to getBitmap() Co-authored-by: Charles Kerr <charles@charleskerr.com> * test: update obsolete refefences to getBitmap() Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
parent
11c820c537
commit
2629b31c19
7 changed files with 36 additions and 22 deletions
|
@ -887,7 +887,7 @@ const { BrowserWindow } = require('electron')
|
|||
|
||||
const win = new BrowserWindow({ webPreferences: { offscreen: true } })
|
||||
win.webContents.on('paint', (event, dirty, image) => {
|
||||
// updateBitmap(dirty, image.getBitmap())
|
||||
// updateBitmap(dirty, image.toBitmap())
|
||||
})
|
||||
win.loadURL('https://github.com')
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue