Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Layering Bitblt

Layering Bitblt

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsperformancehelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bmw5002
    wrote on last edited by
    #1

    Is it possible to flatten multiple memory bitmaps into one device context? I just spent the whole day writing a class for layer management, where you can create as many layers as you like, then address them by name and draw to them, and when your all ready, call one function and it bitblt's all the layers into the dc of your window. The only problem is after I wrote all the code, I realized that the memory bitmaps have a black background, and when you bitblt one bitmap onto another, it just replaces what was there before. is it possible, or did I just waste my whole afternoon?

    R L 2 Replies Last reply
    0
    • B bmw5002

      Is it possible to flatten multiple memory bitmaps into one device context? I just spent the whole day writing a class for layer management, where you can create as many layers as you like, then address them by name and draw to them, and when your all ready, call one function and it bitblt's all the layers into the dc of your window. The only problem is after I wrote all the code, I realized that the memory bitmaps have a black background, and when you bitblt one bitmap onto another, it just replaces what was there before. is it possible, or did I just waste my whole afternoon?

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      Sounds like a good candidate for TransparentBlt() :)

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      1 Reply Last reply
      0
      • B bmw5002

        Is it possible to flatten multiple memory bitmaps into one device context? I just spent the whole day writing a class for layer management, where you can create as many layers as you like, then address them by name and draw to them, and when your all ready, call one function and it bitblt's all the layers into the dc of your window. The only problem is after I wrote all the code, I realized that the memory bitmaps have a black background, and when you bitblt one bitmap onto another, it just replaces what was there before. is it possible, or did I just waste my whole afternoon?

        L Offline
        L Offline
        Larry Antram
        wrote on last edited by
        #3

        See CMemDC or similar.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups