PIX2FB(nged)
display a raw pixel file on the framebuffer
π pix2fb(nged) β BRL-CAD User Commands π
okay bestie, gather round π this is the whole pix2fb(nged) manual page, translated into actual readable group-chat energy. no cap, every flag is still here.
π NAME π
pix2fb β display a raw pixel file on the framebuffer.
β¨ SYNOPSIS β¨
pix2fb [options] [file.pix]
π¦ DESCRIPTION π¦
The pix2fb command reads a raw RGB pixel file (bottom-up row order) and sends it to the display manager's framebuffer. If no filename is given and standard input is not a terminal, pixels are read from standard input. The command requires an active display manager with a framebuffer; it will return an error if no framebuffer is available.
no framebuffer? it errors out. not a vibe, but that's the rule π
β¨ Options β¨
π Input size π
-wwidth β Width of the input pixel file in pixels (default512).-nheight β Height of the input pixel file in pixels (default512).-ssize β Set both input width and height to size (square input).-aβ Autosize the input β attempt to determine dimensions from the file.
π Input region (crop) π
-xfile_xoff β Horizontal offset (in pixels) into the input file to start reading from.-yfile_yoff β Vertical offset (in pixels) into the input file to start reading from.
πΈ Output (framebuffer) size πΈ
-Wscr_width β Width of the framebuffer display area in pixels.-Nscr_height β Height of the framebuffer display area in pixels.-Sscr_size β Set both framebuffer width and height to scr_size (square output).
π¦ Output position π¦
-Xscr_xoff β Horizontal offset into the framebuffer at which to begin writing.-Yscr_yoff β Vertical offset into the framebuffer at which to begin writing.
π Display behavior π
-cβ Clear the framebuffer to black before writing.-zβ Zoom to fill the framebuffer with the input image.-iβ Inverse (upside-down) β draw the image with inverted row order.-1β Force single-line writes (one row at a time).-mlines β Streamlined multi-line writes; write lines rows per call.-pseconds β Pause for seconds before closing the framebuffer and exiting.
π EXAMPLES π
π Example 1. Display a pixel file at native size π
mged> pix2fb render.pix
Sends the raw pixel file render.pix (assumed 512Γ512) to the framebuffer.
π Example 2. Display a 1024Γ768 image and clear first π
mged> pix2fb -w 1024 -n 768 -c scene.pix
Clears the framebuffer to black and then displays the 1024Γ768 pixel file scene.pix.
π Example 3. Zoom a small image to fill the display π
mged> pix2fb -s 256 -z thumbnail.pix
Reads a 256Γ256 pixel file and zooms it to fill the full framebuffer.
π Example 4. Display a crop of an input image at an offset π
mged> pix2fb -w 1024 -n 1024 -x 256 -y 256 -W 512 -N 512 large.pix
Reads the 1024Γ1024 input large.pix, starting from offset (256, 256), and writes a 512Γ512 region to the framebuffer.
π Example 5. Display a raytrace result after rendering to file π
mged> rt -w 512 -n 512 -o render.pix model.g obj mged> pix2fb -w 512
-n 512 render.pix
First renders obj in model.g to a pixel file, then displays the result on the framebuffer. Note: the mged prompt is a Tcl interpreter β shell pipes are not available; multi-step workflows use sequential commands.
π AUTHOR π
BRL-CAD Team
π«Ά BUG REPORTS π«Ά
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org.
okay that's the whole page, bestie π«Ά source/version vibes: this is from BRL-CAD, page PIX2FB(nged). The footer didn't show a date, so I'm not making one up β periodt. π
β¨
π¦ 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