Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
% viewpbm.ps
% Display a PBM/PGM/PPM file.
% Requires the Level 2 `image' operator (to handle variable pixel widths).
% If SCALE is defined, maps input pixels to output pixels with that scale;
% if SCALE is undefined, scales the image to fit the page.
% If FITPAGE true, it fits the output page size to the image, honouring SCALE
% If the program was invoked from the command line, run it now.
[ shellarguments
{ counttomark 1 ge
{ ] { viewpbm } forall
}
{ cleartomark
(Usage: gs [--] viewpbm.ps filename.p*m ...\n) print
( e.g.: gs [--] viewpbm.ps my.ppm another.ppm\n) print flush
}
ifelse
}
{ pop
}
ifelse