BW-PS(1)

πŸ“¦
version 7.44.0 Β· 2 versions
, in nixpkgs unstable

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 -c and -L page-layout options have no effect in this mode. πŸ™ˆ
  • -c β€” Center the output image on the 8.5x11 inch page. 🎯
  • -L β€” Select landscape mode, rotating the output ninety degrees. πŸ”„
  • -s input_squaresize β€” Set both the input width and height, in pixels (default 512). πŸ“
  • -w input_width β€” Set the input width, in pixels (default 512). 🌸
  • -n input_height β€” Set the input height (number of scan lines), in pixels (default 512). πŸŽ€
  • -S inches_square β€” Set both the output width and height, in inches (default 6.75). πŸ¦‹
  • -W inches_width β€” Set the output width, in inches (default 6.75). πŸ’–
  • -N inches_height β€” Set the output height, in inches (default 6.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 🫢

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