Skip to content

Create screenshot from region #154

@parkpaya

Description

@parkpaya

Short summary
Trying to take screenshot on specific region of screen but still can't figure how

Detailed question
What expected

const {  Region ,ImageWriter,ScreenAction} = require("@nut-tree/nut-js");
ImageWriter.store(new ScreenAction.grabScreenRegion(new Region(x,y,w,h)),"myImage.png");

but get an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions