From f38a3019ba70d9ba8cd1758c44670aef876c28c1 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 15 Feb 2014 02:49:33 +0000 Subject: miscellaneous update git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@2125 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- pamfunc.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pamfunc.html') diff --git a/pamfunc.html b/pamfunc.html index 106714bf..4b079fef 100644 --- a/pamfunc.html +++ b/pamfunc.html @@ -259,7 +259,7 @@ of the output is unchanged from the input and pamfunc modifies the sample values as necessary to perform the operation.

But there is one case where pamfunc can achieve the same result just -be changing the maxval and leaving the sample values unchanged: dividing by a +by changing the maxval and leaving the sample values unchanged: dividing by a number 1 or greater, or multiplying by a number 1 or less. For example, to halve all of the values, pamfunc can just double the maxval. @@ -274,7 +274,7 @@ an image with a maxval of 100 and sample value of 10. You divide by 21 and then multiply by 21 again. If pamfunc does this by changing the sample values while retaining maxval 100, the division will result in a sample value of 0 and the multiplication will also result in zero. But if pamfunc -instead keeps the sample value 10 and changing the maxval, the division will +instead keeps the sample value 10 and changes the maxval, the division will result in a maxval of 2100 and the multiplication will change it back to 100, and the round trip is idempotent. -- cgit 1.4.1