Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.
/ rectshot Public archive

A small nodejs utility to get a screenshot to buffer of a region on the desktop screen.

License

Notifications You must be signed in to change notification settings

seiyria/rectshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rectshot

A small nodejs utility to get a screenshot to buffer of a region on the desktop screen.

Usage

npm i rectshot

import rectshot from rectshot;

// synchronous usage - this gets the screen image to buffer at coordinate 100, 200 for a width of 200x200
const color = rectshot([100, 200, 200, 200], true);

// async usage - this gets the screen image to buffer at coordinate 100, 200 for a width of 200x200
pixcolor([100, 200, 200, 200], (err, buffer) => {

});

The return value will be a Buffer, containing the image data for the region.

Restrictions

This uses edge-js, so it only runs on windows, and from a node environment - it will not work in the browser.

About

A small nodejs utility to get a screenshot to buffer of a region on the desktop screen.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published