ppmの色数の最大値を変えて色にスケールをかける
ppmcscale newmaxval [ppmfile]
入力ファイルとしてppmを読み込み、新しい色の最大値によって全てのピクセルの
色にスケールをかけて出力する。
入力ファイル( ppmfile )が指定されていない時は、入力は標準入力になる。
出力は標準出力になる。
色の最大値を少なくすると当然だが、画質が落ちる。
org.ppm
として、次のコマンドを実行すると、
ppmcscale 8 org.ppm > out.ppm
out.ppm
となる。
Copyright (C) 1989 by Jef Poskanzer.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting docu-
mentation. This software is provided "as is" without
express or implied warranty.