Computer Science


pnmdepth(1)                                           pnmdepth(1)

NAME
       pnmdepth - change the maxval in a portable anymap

SYNOPSIS
       pnmdepth newmaxval [pnmfile]

DESCRIPTION
       Reads  a  portable  anymap as input.  Scales all the pixel
       values, and writes out the  image  with  the  new  maxval.
       Scaling the colors down to a smaller maxval will result in
       some loss of information.

       Be careful of off-by-one errors when choosing the new max-
       val.   For  instance,  if  you want the color values to be
       five bits wide, use a maxval of 31, not 32.

SEE ALSO
       pnm(5), ppmquant(1), ppmdither(1)

AUTHOR
       Copyright (C) 1989, 1991 by Jef Poskanzer.

                         12 January 1991                        1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page