What CUPS API can I use for halftone?

Michael Sweet mike at easysw.com
Mon Oct 27 23:28:08 PDT 2008


keens312 wrote:
> Hi Mike,
> 
> I am writing a filter driver for a monochrone raster printer on Macintosh.
> 
> The input is the raster data from cgpdftoraster.
> 
> The driver's task is to process each line of the raster data from 8-bit per pixel to 1 bit per pixel, halftone processing with a pre-defined screen array.
> 
> Is there any API available in CUPS to make this image processing work easy for me?

No, not really.  However, ordered dithering is trivial to implement,
and you can look at the implementation in imagetoraster.c for
inspiration.  I'd also recommend Robert Ulichney's Digital Halftoning
book from MIT Press.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com




More information about the cups-devel mailing list