Re: Issue using an Image to resize a 1-bit (two colour) mask in DIB format

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Mon, 11 Jul 2016, Bob Friesenhahn wrote:
>
> To accomplish what you need, this should work:
>
>   image.type(Magick::BilevelType);

I should mention that image.type() responds to the dither attribute. 
If dithering is enabled then full color quantization with dithering is 
used (very slow but nice output).  Otherwise simple thresholding is 
used (very fast).

You are free to use whatever algorithm you like to produce a 
monochrome image, including the randomThreshold() method.

Bob

-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.