Skip to content

Instantly share code, notes, and snippets.

@ambethia
Created January 2, 2021 00:34
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