Multiple bitmap in VMR9
-
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
-
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
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
-
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
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
-
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
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