screenshot-node icon indicating copy to clipboard operation
screenshot-node copied to clipboard

Save img in memory as buffer data

Open alator21 opened this issue 5 years ago • 2 comments

Is there a way to save the image as a buffer in a variable and not in disk?

alator21 avatar Nov 26 '18 21:11 alator21

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.

Kuzat avatar Dec 11 '18 10:12 Kuzat

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.

Venryx avatar Mar 11 '20 10:03 Venryx