pnm2biff

[ XITE Reference Manual | XITE home ]

Name

pnm2biff - Portable Bit/Gray/Pixel Map to BIFF conversion

Syntax

 pnm2biff [<option>...] <pnm-infile> <BIFF-outfile>

Description

Read an image in one of the formats pbm (portable bitmap), pgm (portable graymap) or ppm (portable pixmap) from the file pnm-file (pnm: portable anymap). Produce a BIFF-image as output in the file BIFF-outfile.

If the pnm-image is a pbm-image, set white equal to hpv (default 255) and black equal to lpv (default 0).

The pixeltype of the resulting BIFF image is determined by the maximum pixelvalue of the pnm image, according to this table
 max pnm value in #bits         BIFF pixeltype
    8                           unsigned byte
   16                           unsigned short

Larger pnm-values generate an error message.

Options

-title title, -t title
Title of resulting BIFF-image. Default: pnm2biff

-lpv lpv
If pnm image is bitmap: Low pixel value. Default: 0

-hpv hpv
If pnm image is bitmap: High pixel value. Default: 255

See also

biff2pnm(1), XITE(1), raw2biff(1)

Reference

Documentation for the pbmplus or netpbm free software packages.

Author

Svein Bøe, Blab, Ifi, UiO

Examples

 pnm2biff monabinary.pnm monabinary.img

Id

$Id: pnm2biff.c,v 1.4 1997/01/02 13:45:20 svein Exp $