mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: Show how to use bitmap data directly
This commit is contained in:
@@ -46,7 +46,7 @@ app.once('ready', () => {
|
||||
})
|
||||
win.loadURL('http://github.com')
|
||||
win.webContents.on('paint', (event, dirty, image) => {
|
||||
fs.writeSync('frame.png', image.toPNG())
|
||||
// updateBitmap(dirty, image.toBitmap())
|
||||
})
|
||||
win.webContents.setFrameRate(30)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user