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

16 lines
677 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.

# pnmpaste
> 将PNM图像粘贴到另一个PNM图像中。
> 更多信息:<https://netpbm.sourceforge.net/doc/pnmpaste.html>。
- 将PNM图像粘贴到指定坐标的另一个PNM图像中
`pnmpaste {{x}} {{y}} {{path/to/image1.pnm}} {{path/to/image2.pnm}} > {{path/to/output.pnm}}`
- 将从`stdin`读取的图像粘贴到指定图像中:
`{{command}} | pnmpaste {{x}} {{y}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`
- 通过指定的布尔操作组合重叠的像素,其中白色像素表示`true`,而黑色像素表示`false`
`pnmpaste -{{and|nand|or|nor|xor|xnor}} {{x}} {{y}} {{path/to/image1.pnm}} {{path/to/image2.pnm}} > {{path/to/output.pnm}}`