How can I make screenshot of the part of the screen?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
vasili111
Posts: 1
Joined: 2014-10-12T02:00:30-07:00
Authentication code: 6789

How can I make screenshot of the part of the screen?

Post by vasili111 »

I use Windows 8. I have coordinates of the part of the screen and I want to make screenshot only of that rectangle. How can I do it with ImageMagick?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: How can I make screenshot of the part of the screen?

Post by dlemstra »

If you have at least ImageMagick 6.8.9-0 you can do the following to take a screenshot of part of your screen:

Code: Select all

convert screenshot: -crop 100x100+500+500 sreenshot.png
The -crop operation cuts out a rectangle that is 100x100 at position 500x500. And if your computer has multiple monitors you can specify an index 'screenshot:[1]'.

Code: Select all

convert screenshot:[1] -crop 100x100+500+500 sreenshot.png
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply