Thread: bitmap in windows

  1. #1
    Registered User
    Join Date
    May 2002

    Question bitmap in windows

    Hai can any body help drawing a bitmap in windows using windows sdk. I don't want the implementation using HBITMAP
    Creating memory DC.

    I am using hardcore technique which includes usage of
    the bitmap structure which is as follows

    RGQUAD Table

    I could display the bitmap but I could not get colors. I am getting only red & black.Unable to use colors of the bitmap

    I need some body to help me

    thanks in advance


  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    look at SetDIBits()
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    There's an example on MSDN somewhere (sorry havent got link as my bookmarks arent here - testing my new linux installation ).....have a search!

    Also, be aware that if your bitmap is storing colours with RGB, they are stored BGR (1st and 3rd colour swapped) you need to swap them....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  2. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  3. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  4. Loading a bitmap (Without using glaux)
    By Shamino in forum Game Programming
    Replies: 7
    Last Post: 03-16-2006, 09:43 AM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM