pbmファイルをpbmファイルに張り付ける
pbmpaste [-replace|-or|-and|-xor] frompbmfile x y [intopbmfile]
入力(frompnmfile)としてppm,pgm,pbmファイルを読み込んで、intopnmfileの
左上からx,yの位置に張り付ける。intopnmfileが指定されていない場合は
intopnmfileは標準入力から読み込まれる。
x + frompnmfileの横方向の解像度
y + frompnmfileの縦方向の解像度
がintopnmfileの横、縦の解像度より大きいとエラーになる。
x,yがマイナスの値の時もエラーになる。
このコマンドは大きな画像ファイルがあった時、その一部だけを取り出して
取り出した部分を修正し、またもとに戻したりする時に使用できる。
tmp1.pbmとtmp2.pbm
を使って次のようにコマンドを打ち込むと
以下のようになる。
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.