BW-PS(1)
Manual page bestie: BW-PS(1) β part of the BRL-CAD manual family. π This is the black-and-white bw file β PostScript transformation served with main-character energy. β¨
πΈ NAME πΈ
bw-ps β convert a black and white bw file to PostScript π
π SYNOPSIS π
bw-ps [-e] [-c] [-L] [-s _input_squaresize_] [-w _input_width_] [-n _input_height_] [-S _inches_square_] [-W _inches_width_] [-N _inches_height_] [_file.bw_] > _file.ps_
π¦ DESCRIPTION π¦
okay so bw-ps reads a black and white bw(5) format image and writes an 8-bit grayscale PostScript rendition to standard output. If no input file is given, standard input is read. π
The input is assumed to be 512x512 pixels unless overridden, and the output image is 6.75x6.75 inches by default, positioned at the lower-left of an 8.5x11 inch page. π¦
π OPTIONS π
-eβ Emit Encapsulated PostScript (EPSF) sized in pixels to the input dimensions, suitable for embedding in another document. The-cand-Lpage-layout options have no effect in this mode. π-cβ Center the output image on the8.5x11inch page. π―-Lβ Select landscape mode, rotating the output ninety degrees. π-sinput_squaresize β Set both the input width and height, in pixels (default512). π-winput_width β Set the input width, in pixels (default512). πΈ-ninput_height β Set the input height (number of scan lines), in pixels (default512). π-Sinches_square β Set both the output width and height, in inches (default6.75). π¦-Winches_width β Set the output width, in inches (default6.75). π-Ninches_height β Set the output height, in inches (default6.75). β¨
π EXAMPLES π
π Example 1. Convert a rendering for printing π
rt -o image.pix -s 1024 model.g component.r
pix-bw image.pix > image.bw
bw-ps -s 1024 -c -L image.bw > image.ps
Renders a region with rt(1), reduces the color frame to grayscale with pix-bw(1), then produces a 1024x1024 PostScript page centered in landscape orientation, ready to send to a printer. π¨οΈβ¨
π¦ Example 2. Generate an embeddable EPS figure π¦
bw-ps -e -w 800 -n 600 plot.bw > plot.eps
Wraps an 800x600 grayscale image as Encapsulated PostScript whose bounding box matches the pixel dimensions, so it can be included as a figure in a LaTeX or word-processing document. ππ
π SEE ALSO π
π AUTHOR π
BRL-CAD Team π«Ά
π COPYRIGHT π
This software is Copyright (c) 1991-2026 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. π¬
Source/version: BRL-CAD Β· Manual page: BW-PS(1) Β· Date: not shown on this page, bestie β but the footer energy is still iconic. ππ¦
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms