home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Assembler / dse-src3.dms / in.adf / Source / Vectors / Dithering / Quantize.lha / quantize.c next >
Encoding:
Internet Message Format  |  1993-01-06  |  977 b 

  1. From: dal@midgard.Midgard.MN.ORG (Dale Schumacher)
  2. Newsgroups: comp.graphics
  3. Subject: Re: Extended dithering, any work done?
  4. Summary: Here's a short program to do this.
  5. Date: 27 Apr 89 21:13:19 GMT
  6. Organization: The Midgard Realm, St Paul MN
  7.  
  8. In article <5237@hubcap.clemson.edu> jcocon%hazel.cs.clemson.edu@hubcap.clemson.edu writes:
  9. |Has any work been done on displaying 256 grey shades on a monitor with
  10. |greater than two grey shades (i.e. black and white + some number of greys)?
  11. |It seems that an extension to dither would be a good place to start.  So
  12. |far as I know, rounding is the norm in hardware (yuck!  a good dither looks
  13. |better than some 16 grey renderings I've seen!).
  14.  
  15. This program is short, so I though I'd just post it.  It uses the PXM file
  16. format libraries I posted earlier, but the algorithm is easily separated
  17. from the file format details.  This program dithers to n levels of grey,
  18. default 2, and creates output in the range 0..255 from similar input.
  19.