home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega A/V
/
mega_av.zip
/
mega_av
/
GRAPHUTL
/
PBMPLUS.ZIP
/
PNMDEPTH.MAN
< prev
next >
Wrap
Text File
|
1991-08-11
|
1KB
|
67 lines
pnmdepth(1) Unix Programmer's Manual pnmdepth(1)
NNNAAAMMMEEE
pnmdepth - change the maxval in a portable anymap
SSSYYYNNNOOOPPPSSSIIISSS
pppnnnmmmdddeeepppttthhh _n_e_w_m_a_x_v_a_l [_p_n_m_f_i_l_e]
DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
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 maxval. For
instance, if you want the color values to be five bits wide, use a maxval
of 31, not 32.
SSSEEEEEE AAALLLSSSOOO
pnm(5), ppmquant(1)
AAAUUUTTTHHHOOORRR
Copyright (C) 1989, 1991 by Jef Poskanzer.
12 January 1991 1