Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const img = nativeImage.createFromBitmap(capture.data, {
width: capture.width,
height: capture.height,
})
fs.writeFile('screen.png', img.toPNG(), (err) => {
console.log({ err })
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment