Skip to content

Part screen snapshot #702

Answered by dlemstra
horan74 asked this question in Help
Jul 21, 2020 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Currently you can crop the image automatically like this:

var settings = new MagickReadSettings
{
    ExtractArea = new MagickGeometry(20, 30, 500, 400)
};

using (var image = new MagickImage("screenshot:", settings))
{
}

// OR

using (var image = new MagickImage("screenshot:[500x400+20+30]"))
{
}

But this now takes a screenshot of the whole area instead of part of the screen. I just pushed a patch to impove the performance and only copy the pixels of the requested area. Not sure yet if this is a solid solution and it will need some more testing but I hope that this will become available in the next release.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@horan74
Comment options

@dlemstra
Comment options

Answer selected by dlemstra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants