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

This commit is contained in:
Juri Dispan
2023-11-08 15:48:12 +01:00
committed by GitHub
parent c249538169
commit 502ca6e70f
6 changed files with 72 additions and 0 deletions

20
pages/common/ppmtoxpm.md Normal file
View File

@@ -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}}`