Home| base |src.bin|graphic| padppmx Index

padppmx

Syntax
padppmx --help
padppmx [-wdt width] [-hgt height] [-xpad xpad] [-ypad ypad] [-bgcol rrggbb] [name]
Synopsis

Pad the edges of an extended Portable PixMap (PPMX) image.

Options
--helpprint the help message and exit.
-wdt widthmake the output image width pixels wide.
-hgt heightmake the output image height pixels tall.
-xpad xpadplace the input image, xpad pixels from the left edge of the output image.
-ypad ypadplace the input image ypad pixels from the top edge of the output image.
-bgcol rrggbbset the background color of the output image to rrggbb, specified as the hexadecimal value for the 24-bit red,green and blue component color.
nameinput image filename. If this is omitted the image will be read from standard input.
Description

Resizes an image by adding padding pixels of the specified background color to image.

The padded PPMX image file is written to standard output.

Examples
padppmx -wdt 720 -hgt 486 -xpad 40 -ypad 3 -bgcol 000000 inp.ppmx > out.ppmx

Pad the PPMX file inp.ppmx to 720x486 pixels and store it in the file out.ppmx