about summary refs log tree commit diff
path: root/converter/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-02-02 15:09:38 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-02-02 15:09:38 +0000
commit403e5c481906869d0e9b16382d08aa0c42400e83 (patch)
tree6c5f10a28f5b0625f6bfc4e0a749d34de28ba549 /converter/other
parent458204e90e9edb29d0f88f92319e23ebe653f0c8 (diff)
downloadnetpbm-mirror-403e5c481906869d0e9b16382d08aa0c42400e83.tar.gz
netpbm-mirror-403e5c481906869d0e9b16382d08aa0c42400e83.tar.xz
netpbm-mirror-403e5c481906869d0e9b16382d08aa0c42400e83.zip
Use ppm_luminosity() instead of PPM_LUMIN() so as to get proper rounding
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1117 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r--converter/other/pamtosvg/thin-image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/pamtosvg/thin-image.c b/converter/other/pamtosvg/thin-image.c
index 40ced794..86d1037c 100644
--- a/converter/other/pamtosvg/thin-image.c
+++ b/converter/other/pamtosvg/thin-image.c
@@ -171,7 +171,7 @@ thin_image(bitmap_type *image, bool bgSpec, pixel bg,
 	    if (PPM_ISGRAY(background))
             bg_color = PPM_GETR(background);
 	    else
-            bg_color = PPM_LUMIN(background);
+            bg_color = ppm_luminosity(background);
 
 	    for (n = num_pixels - 1; n >= 0L; --n)
 	    {
@@ -306,7 +306,7 @@ void thin1(bitmap_type *image, unsigned char colour)
       if (PPM_ISGRAY(background))
           bg_color = PPM_GETR(background);
       else
-          bg_color = PPM_LUMIN(background);
+          bg_color = ppm_luminosity(background);
 
       LOG (" Thinning image.....\n "); 
       xsize = image->width;