pbmshift - shift a PBM-P4-file to the right lower corner
infile topmargin leftmargin outfile
reads a PBM file in P4 format and produces a new PBM file in P4
format. The output is shifted to the right by leftmargin
pixels and to
the lower by topmargin
pixels. This tool can be used to modify the
image produced as export output of the VCG tool
from a graph before
printing it on paper. In this way, margins can be produced to position the
image on the paper. Negative margins are allowed.
This utility does not work with the PBM-P1-format !!! It is not a general
conversion utility but only a small demonstation how to deal with the output
of the VCG tool.
There are excellent standard utilities for PBM-Files
by Jef Poskanzer (pnmmargin)
should be much faster
on large files.
vcg(l) pnmmargin(l) pbmrot90(l) pbm2hp(l)
Currently, no bugs are known.
Jef Poskanzer is the initiator and main implementor of the PBM package that
contains various image processing routines and printer drivers.
Georg Sander, University of Saarland.