Direct2D - Emulating Color Keyed Transparent Bitmaps
I'm currently updating a Windows GDI application to use Direct2D rendering and I need to support "transparent" bitmaps via color-keying for backwards compatibility. Right now I'm working with a HWND render target and a converted WIC bitmap source (to GUID_WICPixelFormat32bppPBGRA). My plan so far is to create a IWICBitmap from the converted bitmap, Lock() it, and then process each pixel setting it's alpha value to 0 if it matches the color key. This seems a bit "brute force" - Is this the best method of approaching this or is there a better way? Edit: In the interests of completeness here's an