CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005
    Posts
    6

    Directshow Vmr9 alpha blending

    Hi

    I using directshow 9 sdk to develop an interface for webcams. I am using VMR9, but the alpha blending don't seem to work. I did the following before adding the bitmap to the VMRbitmapmixer.

    pVMR9AlphaBmp->clrSrcKey = RGB(255, 255, 255);
    pVMR9AlphaBmp->dwFlags |= VMR9AlphaBitmap_SrcColorKey;

    But after adding a bitmap, I do not see the desired results.(ie. white pixels should be transparent, but they are not) Please advise...


    2nd issue is I tried to use the VMRBitmap_Disable flag. But it did not hide the existing bitmap.

    qiren

  2. #2
    Join Date
    Apr 2005
    Posts
    6

    Re: Directshow Vmr9 alpha blending

    I took the code direct from the DirectShow sdk...WaterMark9 using VMR9.

    Perhaps someone could tell me if they actually managed to get the pVMR9AlphaBmp->clrSrcKey = RGB(255, 255, 255);
    pVMR9AlphaBmp->dwFlags |= VMR9AlphaBitmap_SrcColorKey;

    or
    VMRBitmap_Disable flag

    to work.


    I need to know if this is my coding error or a bug in the DirectXSdk 9 version that I am using

    qiren

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured