CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: dib

  1. #1
    Join Date
    Aug 1999
    Posts
    1

    dib

    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 ?


  2. #2
    Join Date
    Jul 1999
    Posts
    145

    Re: dib

    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.


  3. #3
    Join Date
    Jul 1999
    Posts
    145

    Re: dib

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured