Browse Source

pbmtox10bm, pbmtoxbm, ppmtoxpm, xbmtopbm, ximtoppm, xpmtoppm: add pages (#11407)

Juri Dispan 1 năm trước cách đây
mục cha
commit
502ca6e70f

+ 8 - 0
pages/common/pbmtox10bm.md

@@ -0,0 +1,8 @@
+# pbmtox10bm
+
+> This command is superseded by `pbmtoxbm -x10`.
+> More information: <https://netpbm.sourceforge.net/doc/pbmtox10bm.html>.
+
+- View documentation for the current command:
+
+`tldr pbmtoxbm`

+ 12 - 0
pages/common/pbmtoxbm.md

@@ -0,0 +1,12 @@
+# pbmtoxbm
+
+> Convert a PBM image to a X11 or X10 bitmap.
+> More information: <https://netpbm.sourceforge.net/doc/pbmtoxbm.html>.
+
+- Convert a PPM image to a X11 XBM file:
+
+`pbmtoxbm {{path/to/input_file.pbm}} > {{path/to/output_file.xbm}}`
+
+- Explicitly specify whether an X11 or X10 bitmap should be generated:
+
+`pbmtoxbm -{{x11|x10}} {{path/to/input_file.pbm}} > {{path/to/output_file.xbm}}`

+ 20 - 0
pages/common/ppmtoxpm.md

@@ -0,0 +1,20 @@
+# ppmtoxpm
+
+> Convert a PPM image to an X11 version 3 pixmap.
+> More information: <https://netpbm.sourceforge.net/doc/ppmtoxpm.html>.
+
+- Convert a PPM image to a XPM image:
+
+`ppmtoxpm {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}`
+
+- Specify the prefix string in the output XPM image:
+
+`ppmtoxpm -name {{prefix_string}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}`
+
+- In the output XPM file, specify colors by their hexadecimal code instead of their name:
+
+`ppmtoxpm -hexonly {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}`
+
+- Use the specified PGM file as a transparency mask:
+
+`ppmtoxpm -alphamask {{path/to/alpha_file.pgm}} {{path/to/input_file.ppm}} > {{path/to/output_file.xpm}}`

+ 8 - 0
pages/common/xbmtopbm.md

@@ -0,0 +1,8 @@
+# xbmtopbm
+
+> Convert an X11 or X10 bitmap to a PBM image.
+> More information: <https://netpbm.sourceforge.net/doc/xbmtopbm.html>.
+
+- Convert an XBM image to a PPM image:
+
+`xbmtopbm {{path/to/input_file.xbm}} > {{path/to/output_file.pbm}}`

+ 12 - 0
pages/common/ximtoppm.md

@@ -0,0 +1,12 @@
+# ximtoppm
+
+> Convert a XIM file to a PPM image.
+> More information: <https://netpbm.sourceforge.net/doc/ximtoppm.html>.
+
+- Convert an XIM image to a PPM image:
+
+`ximtoppm {{path/to/input_file.xim}} > {{path/to/output_file.ppm}}`
+
+- Store the transparency mask of the input image in the specified file:
+
+`ximtoppm --alphaout {{path/to/alpha_file.pbm}} {{path/to/input_file.xim}} > {{path/to/output_file.ppm}}`

+ 12 - 0
pages/common/xpmtoppm.md

@@ -0,0 +1,12 @@
+# xpmtoppm
+
+> Convert an X11 pixmap to a PPM image.
+> More information: <https://netpbm.sourceforge.net/doc/xpmtoppm.html>.
+
+- Convert an XPM image to a PPM image:
+
+`xpmtoppm {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}`
+
+- Store the transparency mask of the input image in the specified file:
+
+`xpmtoppm --alphaout {{path/to/alpha_file.pbm}} {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}`