Share via


First Sample BitmapEffect

We've announced a while ago that the BitmapEffects pipeline within WinFx (particularly in Windows Presentation Foundation) would be extensible. However, no samples were provided. Today I'm posting the first sample that we've created for test purposes. It demonstrates how to build a simple BitmapEffect.

RGB Adjustor BitmapEffect (February CTP): RGBFilterEffect_code.zip (code no longer available)

RGB Adjustor BitmapEffect (February CTP): RGBFilterEffect_compiled.zip (code no longer available)

(please note: When building this sample you will hit a build error (Error result 1 returned from 'C:\WINNT\system32\cmd.exe'.). Unfortunately this is expected at this time and this is being worked on so it's addressed in a future update. Also, in order to build the sample, you should follow section 6.2 in the Windows SDK readme.)

Comments

  • Anonymous
    April 17, 2006
    IS there a problem running this on Win XP x64?

    uint hresult = Ole32Methods.CoCreateInstance(ref guidEffectCLSID, wrapper.DangerousGetHandle(),
                              CLSCTX_INPROC_SERVER, ref IID_IUnknown, out unmanagedEffect);

    leaves unmanagedEffect as null and returns 2147746132