Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WPF Bitmap Effects

Bitmap effects enable designers and developers to apply visual effects to rendered Windows Presentation Foundation (WPF) content. For example, bitmap effects allow you to easily apply a DropShadowBitmapEffect effect or a blur effect to an image or a button. The unmanaged APIs provide an extensible framework for independent hardware vendors (IHVs) to develop custom effects to use in WPF applications.

Bitmap effects (IMILBitmapEffect object) are simple pixel processing operations. A bitmap effect takes a IWICBitmapSource Interface as an input and produces a new IWICBitmapSource Interface after applying the effect, such as a blur or drop shadow.

Native Bitmap Effects

There are 5 built in bitmap effects available in WPF.

EffectDescriptionEffect CLSID
BlurSimulates looking at an object through an out-of-focus lens. CLSID_MILBitmapEffectBlur
DropShadowApplies a shadow behind a visual object at a slight offset.CLSID_MILBitmapEffectDropShadow
OuterGlowCreates a halo of color around objects or areas of color.CLSID_MILBitmapEffectOuterGlow
BevelCreates a bevel which raises the surface of the image according to a specified curve.CLSID_MILBitmapEffectBevel
EmbossCreates a bump mapping of the visual object to give the impression of depth and texture from an artificial light source.CLSID_MILBitmapEffectEmboss


Custom BitmapEffects

Custom effects are created by implemented the unmanaged APIs to create an effect library that can be used in a managed WPF application.

For an example of a custom bitmap effect, see Custom RGBFilter Effect in WPF.

Related Topics

Custom RGBFilter Effect in WPF



Send comments about this topic to Microsoft

Build date: 6/30/2010

Community Additions

© 2015 Microsoft