Linux command
pgmmake 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Create solid gray image
pgmmake [0.5] [100] [100] > [gray.pgm]
Create white image
pgmmake 1.0 [200] [150] > [white.pgm]
Create black image
pgmmake 0.0 [640] [480] > [black.pgm]
Specify max value
pgmmake -maxval [65535] [0.5] [100] [100] > [gray16.pgm]
说明
pgmmake creates a solid color PGM grayscale image of specified dimensions. The gray value is a fraction where 0.0 is black and 1.0 is white.
参数
- grayval
- Gray level (0.0 = black, 1.0 = white).
- width
- Image width in pixels.
- height
- Image height in pixels.
- -maxval _n_
- Maximum gray value (default 255).
FAQ
What is the pgmmake command used for?
pgmmake creates a solid color PGM grayscale image of specified dimensions. The gray value is a fraction where 0.0 is black and 1.0 is white.
How do I run a basic pgmmake example?
Run `pgmmake [0.5] [100] [100] > [gray.pgm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does grayval do in pgmmake?
Gray level (0.0 = black, 1.0 = white).