2023-11-08 10:05:41 +01:00
|
|
|
# pnmtoxwd
|
|
|
|
|
|
|
|
> Convert a PNM file into an X11 window dump file.
|
|
|
|
> More information: <https://netpbm.sourceforge.net/doc/pnmtoxwd.html>.
|
|
|
|
|
|
|
|
- Convert a PNM image file to XWD:
|
|
|
|
|
|
|
|
`pnmtoxwd {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}`
|
|
|
|
|
|
|
|
- Produce the output in the DirectColor format:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pnmtoxwd {{[-d|-directcolor]}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}`
|
2023-11-08 10:05:41 +01:00
|
|
|
|
|
|
|
- Set the color depth of the output to b bits:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pnmtoxwd {{[-ps|-pseudodepth]}} {{b}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}`
|