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