Grayscale to binary image conversion

Started by
10 comments, last by wlw_wl 15 years, 11 months ago
The reason for zigzagging is to avoid the artifact you've got in the top-left corner of your monochrome image; where there's no visible dithering for a fair while, because the algorithm hasn't yet accumulated enough error to dither properly.
RIP GameDev.net: launched 2 unusably-broken forum engines in as many years, and now has ceased operating as a forum at all, happy to remain naught but an advertising platform with an attached social media presense, headed by a staff who by their own admission have no idea what their userbase wants or expects.Here's to the good times; shame they exist in the past.
Advertisement
Well, I've implemented Floyd-Steinberg, Stucki, Sierra 3 and Ninke and I noticed that this zig-zag movement that should be done destroys the image totally.

Thanks for all replies, they were a great aid!

It's a shame, but I don't know how to do that:

I get my image in two-dimmensional array and I want to save it as a .bmp file, but CreateBitmap function gives me a hard time... How should I do that?

[Edited by - wlw_wl on May 16, 2008 7:40:48 PM]

This topic is closed to new replies.

Advertisement