← 返回命令列表

Linux command

pnmshear 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Shear image horizontally

pnmshear [30] [input.pnm] > [output.pnm]

Shear with background color

pnmshear -background [white] [45] [input.pnm] > [output.pnm]

说明

pnmshear applies a horizontal shear transformation to PNM images, sliding each row by an amount proportional to its distance from the center. The result is a parallelogram-shaped image where the shear angle is specified in degrees. Anti-aliasing is applied by default for smooth results. The -background option sets the fill color for newly exposed areas, and -noantialias disables smoothing. Part of the Netpbm toolkit.

参数

-background _color_
Fill color for new areas.
-noantialias
Disable anti-aliasing.

FAQ

What is the pnmshear command used for?

pnmshear applies a horizontal shear transformation to PNM images, sliding each row by an amount proportional to its distance from the center. The result is a parallelogram-shaped image where the shear angle is specified in degrees. Anti-aliasing is applied by default for smooth results. The -background option sets the fill color for newly exposed areas, and -noantialias disables smoothing. Part of the Netpbm toolkit.

How do I run a basic pnmshear example?

Run `pnmshear [30] [input.pnm] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -background _color_ do in pnmshear?

Fill color for new areas.