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

ppmtoxml

Syntax
ppmtoxml --help
ppmtoxml [-name iname] [name]
ppmtoxml -alpha alpha [-name iname] [name]
Synopsis

Convert a Portable PixMap (PPM) image to an XML representation.

Options
--helpprint the help message and exit.
-name inameset the image name in the output image to iname.
-alpha alphaset alpha channel for all pixels to thvalue given by alpha. The value can be given as a decimal, percentage or hexadecimal.
nameinput image filename. If this is omitted the image will be read from standard input.
Description

Convert a Portable PixMap (PPM) image to an XML representation.

The XML representation is written to standard output.

Examples
ppmtoxml -name "rplot" inp.ppm > out.xml

Convert PPM file inp.ppm to the XML file out.xml. Set the image name to "rplot".

ppmtoppmx -alpha 80% inp.ppm > out.xml

Convert PPM file inp.ppm to the XML representation out.xml. The alpha channel is set to 80%.