Linux command
pnmpaste 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Paste image onto another
pnmpaste [small.pnm] [x] [y] [background.pnm] > [output.pnm]
Paste at top-left
pnmpaste [overlay.pnm] 0 0 [base.pnm] > [output.pnm]
Replace operation
pnmpaste -replace [patch.pnm] [100] [50] [image.pnm] > [output.pnm]
OR operation
pnmpaste -or [mask.pbm] [x] [y] [image.pnm] > [output.pnm]
说明
pnmpaste pastes one PNM image onto another at a specified position. Multiple paste operations (replace, or, and, xor) allow for different compositing effects. Part of Netpbm for image compositing.
参数
- from
- Image to paste.
- x, y
- Position in target image.
- to
- Background image.
- -replace
- Simple replacement (default).
- -or
- Bitwise OR.
- -and
- Bitwise AND.
- -xor
- Bitwise XOR.
FAQ
What is the pnmpaste command used for?
pnmpaste pastes one PNM image onto another at a specified position. Multiple paste operations (replace, or, and, xor) allow for different compositing effects. Part of Netpbm for image compositing.
How do I run a basic pnmpaste example?
Run `pnmpaste [small.pnm] [x] [y] [background.pnm] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does from do in pnmpaste?
Image to paste.