bwrect — extract a rectangle from a black and white bw file
bwrect [-h ] [-s squaresize] [-w width] [-n height] [-W out_width] [-N out_height] [-x xorig] [-y yorig] [-S out_squaresize] [-o out_file.bw] file.bw > [out_file.bw]
Bwrect extracts a rectangular region from a black and white bw(5) format file. The default input image size is 512X512. The x-y coordinates of the origin (xorig=0, yorig=0 corresponds to the lower left corner) and the dimension of the output image are passed as command line arguments.
This utility supports pipes and can read/write from/to them.
We ought to allow the questions to be answered on the command line so that shell scripts, etc., could use this.