Re: Win32Lib: Flood Fill Demo
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Oct 02, 2000
- 392 views
Brian, Your demo looks real nice! Is there any way to programmatically set for 32 bit color, so the demo/method would work without the user having to do so to get rid of the dithering? If so, and if the change of "createBrush" to global doesn't make any problems, then this would seem to be a nice add to Win32Lib Dan ----- Original Message ----- From: "Brian Broker" <bkb at CNW.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Sunday, October 01, 2000 7:15 PM Subject: Re: Win32Lib: Flood Fill Demo > On Sun, 1 Oct 2000 19:01:01 -0700, I wrote: > > >The only thing I can't figure out about it is that it leaves a > >dithered remnant of the original color. > > > >If anybody can figure out why, I'd love to hear about it. > > I'll save you the trouble on this one. It turns out that windows does some > dithering when you have your system set to 16-bit color. I had to crank it > up to 32-bit to get my demo working properly. But this brings up an > interesting issue: the Win32Lib constant definitions for Red, Green, and > Blue are off by one and should use a value of 128 instead of 127... (and > other color constants should be tweaked accordingly). > > -- Brian