PNG2FB(nged)
load a PNG image into the current display framebuffer
β¨ PNG2FB (nged) β¨
okay bestie, welcome to the png2fb page from the BRL-CAD User Commands manual β this is literally the glow-up tool for your framebuffer π
πΈ NAME πΈ
png2fb β load a PNG image into the current display framebuffer πΌοΈβ¨
π¦ SYNOPSIS π¦
png2fb [-H -i -c -v -z -1] [-m lines] [-g screen_gamma]
[-x file_xoff] [-y file_yoff] [-X scr_xoff] [-Y scr_yoff]
[-S squarescrsize] [file.png]
π DESCRIPTION π
so the png2fb command reads a PNG (Portable Network Graphics) image file and slays it right into the framebuffer of your current display manager. it overlays the rendered image on top of the MGED display, which is giving main character energy fr fr π
if you don't hand it a file.png, png2fb reads from standard input. no file, no problem, it'll just vibe with stdin π«Ά
heads up bestie: this command requires the current display manager to have an associated framebuffer. if there's no framebuffer available, you get an error. no framebuffer, no slay. π
β¨ Options β¨
-Hβ use the framebuffer's hardware size for the display dimensions instead of the PNG image's size. hardware knows best, periodt.-iβ invert the image (flips vertically when reading from a file). upside-down era π-cβ clear the framebuffer to black before displaying the image. fresh canvas, clean slate π-vβ verbose mode: prints extra info while loading, so you can watch it cook π-zβ zoom the image to fill the framebuffer. big picture energy π₯-1β use a single line at a time for I/O β slower, but uses less memory. lowkey frugal, highkey iconic π§-mlines β read lines lines at a time from the PNG file (default: vary). the default just does its own thing, iykyk.-gscreen_gamma β apply the specified gamma correction value to the display. color-corrected queen π-xfile_xoff β horizontal offset (in pixels) into the PNG file to start reading. skip to the good part.-yfile_yoff β vertical offset (in pixels) into the PNG file to start reading.-Xscr_xoff β horizontal offset on the framebuffer screen to begin writing.-Yscr_yoff β vertical offset on the framebuffer screen to begin writing.-Ssquarescrsize β set both the screen width and height to squarescrsize pixels. a perfect square, a perfect vibe π
π EXAMPLES π
Example 1. Display a PNG image in the framebuffer
mged> png2fb render.png
loads render.png into the current display framebuffer. that's it, that's the whole moment β¨
Example 2. Clear framebuffer and display at an offset
mged> png2fb -c -X 100 -Y 50 overlay.png
clears the framebuffer first, then displays overlay.png starting at screen position (100, 50). chef's kiss placement π
π SEE ALSO π
fbclear(nged)screengrab(nged)
π AUTHOR π
BRL-CAD Team π«Ά
π BUG REPORTS π
reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β tell them everything, bestie, they wanna know π§
not me wrapping up with the credits: this masterpiece comes to you from BRL-CAD, page PNG2FB(nged). mwah, stan, bye πβ¨π
π¦ 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