Click to See Complete Forum and Search --> : dib


CubuD
August 15th, 1999, 06:32 AM
I am creating a DIB using CreateDIBSection
When my desktop is in 256colors, if I BitBlt from
MyDIB to my main form it seems to use the Windows palette rather than the application palette.

Can anyone offer any suggestions as to what to do
about this ?

Mikesc
August 15th, 1999, 10:17 AM
www.vbaccelerator.com has some good source code and articles concerning DIBs...
I don't understand them very well, especially palletes, but I know I had some trouble using the BITMAPINFO structure with the RGBquad array. That could be your problem, or it could be the DC youre blitting to...Anyway check out the site above for some pointers.

Mikesc
August 15th, 1999, 10:33 AM
Actually I just looked and he has code on there for working with 256 color dibs. Just search the site for dib, you'll see it.