diff --git a/src/modules/Image/encodings/pnm.c b/src/modules/Image/encodings/pnm.c index 4203531cdadd506e4b0af01a0206346f3a0e32f1..59114f2c4e3c148e1d37f1f40f2970ddbb2c86a7 100644 --- a/src/modules/Image/encodings/pnm.c +++ b/src/modules/Image/encodings/pnm.c @@ -1,9 +1,9 @@ -/* $Id: pnm.c,v 1.8 1998/01/13 01:32:20 mirar Exp $ */ +/* $Id: pnm.c,v 1.9 1998/01/13 01:35:28 mirar Exp $ */ /* **! module Image **! note -**! $Id: pnm.c,v 1.8 1998/01/13 01:32:20 mirar Exp $ +**! $Id: pnm.c,v 1.9 1998/01/13 01:35:28 mirar Exp $ **! submodule PNM **! **! This submodule keeps the PNM encode/decode capabilities @@ -49,7 +49,7 @@ #include "stralloc.h" #include "global.h" -RCSID("$Id: pnm.c,v 1.8 1998/01/13 01:32:20 mirar Exp $"); +RCSID("$Id: pnm.c,v 1.9 1998/01/13 01:35:28 mirar Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -244,6 +244,14 @@ void img_pnm_decode(INT32 args) **! uses the most optimized encoding for this image (bitmap, grey **! or truecolor) - P4, P5 or P6 respective P1, P2 or P3. **! +**! P1/P4 assumes the image is black and white. Use +**! <ref>Image.image->threshold</ref>() or something like +**! <tt><ref>Image.colortable</ref>( ({({0,0,0}),({255,255,255})}) )->floyd_steinberg()->map(my_image)</ref></tt> +**! to get a black and white image. +**! +**! P2/P5 assumes the image is greyscale. Use +**! <ref>Image.image->grey</ref>() to get a greyscale image. +**! **! see also: decode **! **! returns the encoded image as a string