Linux command
pnmcomp 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Composite images
pnmcomp [overlay.pnm] [background.pnm] > [output.pnm]
With alpha mask
pnmcomp -alpha=[mask.pgm] [overlay.pnm] [background.pnm] > [output.pnm]
Position overlay
pnmcomp -xoff=[100] -yoff=[50] [overlay.pnm] [background.pnm] > [output.pnm]
说明
pnmcomp composites two PNM images by overlaying one on top of another with optional alpha transparency. An alpha mask (PGM file) controls the blending between overlay and background pixels. Position offsets (-xoff, -yoff) control where the overlay is placed on the background. Part of the Netpbm toolkit; superseded by pamcomp in newer versions.
参数
- -alpha _FILE_
- Alpha mask.
- -xoff _PIXELS_
- X offset.
- -yoff _PIXELS_
- Y offset.
- -align _POS_
- Alignment.
FAQ
What is the pnmcomp command used for?
pnmcomp composites two PNM images by overlaying one on top of another with optional alpha transparency. An alpha mask (PGM file) controls the blending between overlay and background pixels. Position offsets (-xoff, -yoff) control where the overlay is placed on the background. Part of the Netpbm toolkit; superseded by pamcomp in newer versions.
How do I run a basic pnmcomp example?
Run `pnmcomp [overlay.pnm] [background.pnm] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -alpha _FILE_ do in pnmcomp?
Alpha mask.