screenshot-node
screenshot-node copied to clipboard
Save img in memory as buffer data
Is there a way to save the image as a buffer in a variable and not in disk?
There should be a way to do that and that would be very convenient but at the time when I wrote this I didn't think about it. It is one of the things I want to improve for this program.
This would be great!
I've been looking for a node-js library that is able to retrieve the colors of a region of the screen; I had been using p-invoke gdi32.dll GetPixel
calls through node-ffi, but it's very slow since each call has overhead.
This library already has the cross-platform screenshotting part down, but I guess it needs a communication channel+format set up between the calling NodeJS code and the C++ code to return the data.