TGA to HBITMAP

This is a discussion on TGA to HBITMAP within the Windows Programming forums, part of the Platform Specific Boards category; Im wondering if there is a way for me to read a TGA file into an HBITMAP handle? if thats ...

  1. #1
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195

    TGA to HBITMAP

    Im wondering if there is a way for me to read a TGA file into an HBITMAP handle? if thats not possible, I have written my own TGA reader and I can get teh RGBA values, is there a way to get windows to recognize those values as if it was a btmap?

    basicall i want to draw TGA files.
    Founder and avid member of the Internationsl Typo Associateion

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Seek and ye shall find . . . especially if you use google . . . .

    http://www.google.ca/search?as_q=tga...s=&safe=images
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195
    Ok I got a followup question. I got the TGA files being displayed and its all wonderful and everything BUT my problem is that the TGA images are being rendered unsidedown. is that just how TGA files are stored (which means i gotta manually flip them, it is it the BitBlt funtion??
    Founder and avid member of the Internationsl Typo Associateion

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Loading bitmap file into a HBITMAP
    By wind_addict in forum Windows Programming
    Replies: 9
    Last Post: 11-17-2007, 10:42 AM
  2. drawing on bitmaps
    By eth0 in forum Windows Programming
    Replies: 2
    Last Post: 03-24-2006, 05:56 PM
  3. HBITMAP in Class
    By Born_2B_Alone in forum Windows Programming
    Replies: 1
    Last Post: 10-09-2004, 06:47 PM
  4. HBITMAP from hdc
    By solar3147 in forum Windows Programming
    Replies: 5
    Last Post: 07-02-2003, 02:59 AM
  5. Static HBITMAP
    By Hunter2 in forum C++ Programming
    Replies: 4
    Last Post: 07-01-2002, 07:43 PM

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