Re: createDIB() in Win32Lib needs a doctor!
Mike Hurley wrote:
> createDIB() doesn't work.
Specifically, it has trouble with DIB that only contain two colors. The
following will "fix" the problem:
pal={{0,0,255},{255,0,0}, {0,0,0}},
It forces the palette to use the 16 color palette code, which works.
I'll take a look at the pixel packing routine. Someone had corrected the 16
color palette code some time back; I should have paid more attention to it.
It looks like the 2 color palette needs a similar fix.
Thanks!
-- David Cuny
|
Not Categorized, Please Help
|
|