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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Multiple bitmap in VMR9

Multiple bitmap in VMR9

Scheduled Pinned Locked Moved C / C++ / MFC
graphicstutorialquestion
4 Posts 2 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.
  • H Offline
    H Offline
    houari_id
    wrote on last edited by
    #1

    Hi all... Is it possible to mix more than one bitmap in VMR9 using MixerBitmap in one time? I've tried to create two IVMRMixerBitmap instances, two SetInitialAlphaBitmap functions (as in BmpMix9 example), but only the last one is displayed. Thank you...

    -Houari

    M 1 Reply Last reply
    0
    • H houari_id

      Hi all... Is it possible to mix more than one bitmap in VMR9 using MixerBitmap in one time? I've tried to create two IVMRMixerBitmap instances, two SetInitialAlphaBitmap functions (as in BmpMix9 example), but only the last one is displayed. Thank you...

      -Houari

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      IVMRMixerBitmap::SetAlphaBitmap() sets a new bitmap, replacing the previous one. You can, however, combine your bitmaps into one bitmap :) Mark

      "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

      H 1 Reply Last reply
      0
      • M Mark Salsbery

        IVMRMixerBitmap::SetAlphaBitmap() sets a new bitmap, replacing the previous one. You can, however, combine your bitmaps into one bitmap :) Mark

        "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

        H Offline
        H Offline
        houari_id
        wrote on last edited by
        #3

        ah yes... that was in my mind too... ^^ but I need the position of my bitmaps in the video to be independently changed anytime I want. is there any way to do this? I was also failed by using CDC in the same picture control with the vmr video (the CDC drawing is overlapped by the video...) -_- thanks

        -Houari

        M 1 Reply Last reply
        0
        • H houari_id

          ah yes... that was in my mind too... ^^ but I need the position of my bitmaps in the video to be independently changed anytime I want. is there any way to do this? I was also failed by using CDC in the same picture control with the vmr video (the CDC drawing is overlapped by the video...) -_- thanks

          -Houari

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          houari_id wrote:

          but I need the position of my bitmaps in the video to be independently changed anytime I want.

          You'd need to redraw the offscreen bitmap each time the bitmaps change position. If you're experienced with DirectDraw (I personally am not) you can also use the VMR Renderless Playback Mode (Custom Allocator-Presenters)[^]. The alternative I chose was to make my own renderer filter so I had complete control over all the drawing. That certanly isn't a necessary solution however.

          houari_id wrote:

          I was also failed by using CDC in the same picture control with the vmr video (the CDC drawing is overlapped by the video...)

          Yeah, that won't work well.. That's why mixing is necessary :) Mark

          "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

          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