Thread: Copying Bitmap Resources without Creating HDC's

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    76

    Question Copying Bitmap Resources without Creating HDC's

    Hi I am running into a problem with my windows based program. I am using a Hbitmap as a back buffer before blitting it onto the screen. My problem is I want to load bitmap resources onto seperate bitmaps before blitting them onto the back buffer. Can I do this without having to put each indivudual bitmap into a seperate HDC and then blitting them across.

    In short can i load a bitmap resource file and then copy it into a HBITMAP already in a HDC??

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>can i load a bitmap resource file and then copy it into a HBITMAP already in a HDC<<

    No.

    If you need better performance than the next-to-none offered by gdi, which is really only good for gui programming, despite the illusion of decent performance afforded by fast, modern hardware, then you should seriously consider using directx or opengl.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with Bitmap Display
    By The Brain in forum Windows Programming
    Replies: 7
    Last Post: 03-23-2009, 05:33 AM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. Copying the resources between projects
    By axr0284 in forum Windows Programming
    Replies: 3
    Last Post: 01-20-2005, 11:24 PM
  4. OpenGL -- Bitmaps
    By HQSneaker in forum Game Programming
    Replies: 14
    Last Post: 09-06-2004, 04:04 PM
  5. Help creating a Bitmap
    By Kristian25 in forum Windows Programming
    Replies: 1
    Last Post: 02-25-2003, 05:17 AM