VMR9AlphaBitmap colorkey issue

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I'm trying to use a color key to blend a bitmap and video with
VMR9AlphaBitmap. It works pretty well in general. I set:

bmpInfo.clrSrcKey = RGB(255, 255, 255);
bmpInfo.dwFlags |= VMRBITMAP_SRCCOLORKEY;

If I do this, any lines that I'm drawing on the bitmap that are white
become transparent. This is great - I draw white as by background, and
voila, alpha blending.

However what I don't understand is why my grey doesn't show up, either.
Grey being 192,192,192. Neither does off white - 254, 254, 254.

I guess I don't understand what color keying is - I thought the color
had to match *exactly* the color key or else it wouldn't become
transparent. Does this make sense or does it seem like I must be doing
something wrong? All other 'normal' colors - green, red, blue, yellow -
work just fine.

- Ryan

.



Relevant Pages

  • Re: Filled polygons print to PDF as opaque
    ... I cross posted this question to the Adobe Acrobat Windows users forum. ... transparent patterns) and the PDF driver uses PostScript to do the heavy ... your implication is that I'm stuck with a bitmap if I want ... Brush m_BG = new SolidBrush; ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: transparency in dlg
    ... I have bitmap loaded as picture control in dlg, ... color which I want to make transparent, ... That's why I often use icons in statics rather than ... same as the CStatic's foreground(if thats what you want). ...
    (microsoft.public.vc.mfc)
  • Re: Attempting a transparent BLT and failing.
    ... When blitting from a color to a monochrome bitmap, ... achieving the transparent blt result. ... my transparency color and block transfer it to my memoryDC using SRCCOPY. ... SelectObject(memoryDC, selectedBitmap); ...
    (microsoft.public.win32.programmer.gdi)
  • Re: How to Hightlight text in CRichEditCtrl
    ... >The text that the user types eventually gets displayed on a bitmap ... Originally all the text will have a transparent ... When the user sets a background color, ... In case of the target text is display on a transparent background, ...
    (microsoft.public.vc.mfc)
  • Re: Double buffered bitmap and windows controls
    ... Answer those GDI+ questions with the GDI+ FAQ ... hope this is the right ng to ask this question> I have a winforms control which in the paint overridden handler> draws something on top of a back buffer bitmap and then draws the result to the main> graphics. ... Let's say for example that I have one instance> of this control displaying a rectangular bitmap, and on top of it another ... What I expect is the corners around the> circular one to be transparent, ...
    (microsoft.public.dotnet.framework.drawing)