png [-c r/g/b] [-s size] file
PNG(nged)
NAME
png - Writes the current display to a PNG image file.
On this page
SYNOPSIS
DESCRIPTION
Writes the current GED display to the specified PNG file.
The implementation supports the following options:
-
-c r/g/b - Set the background color using RGB values separated by non-numeric delimiters.
-
-s size - Set the output image size in pixels. The implementation requires a size of at least 50.
Without options, the command writes a 512x512 PNG image with a white background.
EXAMPLES
The examples show common uses of png.
Example 1. Write the current display to a PNG file.
mged>png view.png
Writes the current display to view.png.
Example 2. Write a larger PNG with a black background.
mged>png -c 0/0/0 -s 1024 view.png
Writes a 1024x1024 PNG image using a black background.
AUTHOR
BRL-CAD Team
BUG REPORTS
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org