Files
tldr/pages.zh/common/pnmtopalm.md

24 lines
751 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pnmtopalm
> 将PNM图像转换为Palm位图。
> 更多信息:<https://netpbm.sourceforge.net/doc/pnmtopalm.html>。
- 将PNM图像转换为Palm位图
`pnmtopalm {{path/to/file.pnm}} > {{path/to/file.palm}}`
- 指定生成位图的颜色深度:
`pnmtopalm -depth {{1|2|4|8|16}} {{path/to/file.pnm}} > {{path/to/file.palm}}`
- 选择生成位图的压缩方法:
`pnmtopalm -{{scanline_compression|rle_compression|packbits_compression}} {{path/to/file.pnm}} > {{path/to/file.palm}}`
- 构建自定义调色板并将其包含在生成的位图中:
`pnmtopalm -colormap {{path/to/file.pnm}} > {{path/to/file.palm}}`
- 指定位图的密度:
`pnmtopalm -density {{72|108|144|216|288}} {{path/to/file.pnm}} > {{path/to/file.palm}}`