Name

pixrect — extract a rectangle from a color pix file

Synopsis

pixrect [-s squaresize] [-w width] [-n height] [-S out_squaresize] [-W out_width] [-N out_height] [-x xorig] [-y yorig] [-o out_file.pix] file.pix > [out_file.pix]

DESCRIPTION

pixrect extracts a rectangular region from a colored pix(5) format file. The default input image size is 512x512. The x,y coordinates of the origin (the default xorig=0, yorig=0 corresponds to the lower left corner) are passed as command line arguments.

The -w file_width flag specifies the width of each scanline in the input file, in pixels. -W scr_width does the same for the display device.

The -n file_height and -N scr_height flags specifies the height in scanlines of the input file or display device respectively.

-s squarefilesize and -S squarescrsize set both the height and width to the size given (for input file and display device respectively).

-o out_file.pix is a way of specifying output file name.

This utility supports redirected input/output images.

SEE ALSO

brlcad(1), bwrect(1), pix(5), bw(5)

AUTHOR

BRL-CAD Team

COPYRIGHT

This software is Copyright (c) 1989-2016 by the United States Government as represented by U.S. Army Research Laboratory.

BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to <devs@brlcad.org>.