--- OLD/pnm/pnmpaste.1 Thu Jan 1 00:00:00 1970 +++ NEW/pnm/pnmpaste.1 Thu Jan 1 00:00:00 1970 @@ -4,8 +4,8 @@ pnmpaste - paste a rectangle into a portable anymap .SH SYNOPSIS .B pnmpaste -.RB [ -replace | -or | -and -.RB | -xor ] +.RB [ -replace | -max | -min +.RB | -or | -and | -xor ] .I frompnmfile x y .RI [ intopnmfile ] .SH DESCRIPTION @@ -37,16 +37,31 @@ The optional flag specifies the operation to use when doing the paste. The default is .BR -replace . -The other, logical operations are only allowed if both input images -are bitmaps. -.IX "logical operations" -These operations act as if white is TRUE and black is FALSE. +.B -max +and +.B -min +result in the brighter and dimmer, respectively, of the two inputs. +.BR -and , +.BR -or , +and +.B -xor +are allowed only when both input images are bitmaps; they act as if +white is TRUE and black is FALSE. .PP All flags can be abbreviated to their shortest unique prefix. .SH "SEE ALSO" pnmcut(1), pnminvert(1), pnmarith(1), pnm(5), pbmmask(1) +.SH BUGS +.B -min +and +.B -max +may not work as expected if the input files have different maxvals. .SH AUTHOR Copyright (C) 1989, 1991 by Jef Poskanzer. +.B -min +and +.B -max +added 2013 by Mouse. .\" 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