ppmarith

Section: User Commands (1)
Updated: 08 August 1989
Index Return to Main Contents
 

NAME

ppmarith - perform arithmetic on two portable pixmaps  

SYNOPSIS

ppmarith -add|-subtract|-multiply ppmfile1 ppmfile2  

DESCRIPTION

Reads two portable bitmaps as input. Performs the specified arithmetic operation, and produces a portable bitmap as output. The two input pixmaps must be the same width and height.

The arithmetic is performed between corresponding pixels in the two bitmaps, with maxval as 1.0, black as 0.0, and a linear scale in between. Results that fall outside of [0..1) are truncated.

All flags can be abbreviated to their shortest unique prefix.  

SEE ALSO

pbmmask(1), pbmpaste(1), pnminvert(1), ppm(5)  

AUTHOR

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 documentation. This software is provided "as is" without express or implied warranty.


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 18:23:59 GMT, January 07, 2023