bitmap in windows

This is a discussion on bitmap in windows within the Windows Programming forums, part of the Platform Specific Boards category; Hai can any body help drawing a bitmap in windows using windows sdk. I don't want the implementation using HBITMAP ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    21

    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


    BITMAPFILEHEADER
    BITMAPINFOHEADER
    RGQUAD Table
    ACTUAL BITMAP DATA

    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

    vamshi

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    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
    Posts
    5,786
    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)....so 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, 07: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, 03:44 AM
  4. Loading a bitmap (Without using glaux)
    By Shamino in forum Game Programming
    Replies: 7
    Last Post: 03-16-2006, 08:43 AM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21