A command-line screenshot maker

When googling for a command-line screenshot maker, all I found was a bloated 3 MB tool and this nifty piece of code.
So I took it and added some command line options I needed:

-filename "my screeny.png"    file name (default: screenshot.png)
-encoder png                  file encoder: bmp/jpeg/gif/tiff/png (default: png)
-quality 100                  file quality for jpeg (between 0 and 100)
-resize 50                    image size, % of the original size (between 1 and 99)

Perhaps it’s gonna be useful to others, so I’m releasing it.
The code and a compiled binary are attached.

rar source.rar (2.97 KB)
rar binary.rar (20.24 KB)

Posted in Programming by RaMMicHaeL at November 16th, 2009.

One Response to “A command-line screenshot maker”

  1. Will Knot B. Revealed Snr. says:

    Can’t see why no one has commented on this.
    Thank you. This shall be useful I’m sure :)

Leave a Reply