colored to dithered monochrome in magick++

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: colored to dithered monochrome in magick++

Post by magick »

Magick++ include a demo/demo.cpp program that shows how to produce monochrome output. Here is a code snippet:

Code: Select all

      example.quantizeColorSpace( GRAYColorspace );
      example.quantizeColors( 2 );
Post Reply