Click to See Complete Forum and Search --> : Directshow Vmr9 alpha blending


qirenz
April 19th, 2005, 02:44 AM
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

qirenz
April 19th, 2005, 10:02 PM
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