Click to Rate and Give Feedback
MSDN
MSDN Library
WPF Bitmap Effects
 WPF Bitmap Effects

  Switch on low bandwidth view
WPF Bitmap Effects

Bitmap effects enable designers and developers to apply visual effects to rendered Microsoft 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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker