DrawingGroup.BitmapEffect Property


Gets or sets the BitmapEffect to apply to this DrawingGroup.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

Public Property BitmapEffect As BitmapEffect

Property Value

Type: System.Windows.Media.Effects.BitmapEffect

The BitmapEffect to apply to this DrawingGroup. The default is null.

For more information about bitmap effects and how they work, see Bitmap Effects Overview.

DrawingGroup operations are applied in the following order:

Identifier field


Metadata properties set to true


Legacy Code Example

This example shows how to apply a BitmapEffect to a drawing. Use a BitmapEffect to blur or emboss, or to apply other visual effects to rendered content.

Only DrawingGroup objects support bitmap effects. To apply a bitmap effect to another type of Drawing object, add it to a DrawingGroup and set the BitmapEffect property of the DrawingGroup object.


Windows Presentation Foundation (WPF) bitmap effects are software rendered. Any object that applies a BitmapEffect is also rendered in the software. Avoid using a BitmapEffect in large visuals or animations because this scenario can cause a decrease in system performance.

The following example uses a DrawingGroup to apply a BlurBitmapEffect to several GeometryDrawing objects.

The following illustration shows the output from this example.

DrawingGroup with a BlurBitmapEffect
Code snippet is not found. Confirm that the code snippet name 'DrawingMiscSnippets_snip' is correct.

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft