.NET Framework 4.6 and 4.5
PresentationCore (in PresentationCore.dll)
Public Property BitmapEffect As BitmapEffect
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.
DrawingGroup objects support bitmap effects. To apply a bitmap effect to another type of Drawing object, add it to a DrawingGroup and set the property of the BitmapEffect 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.
Code snippet is not found. Confirm that the code snippet name 'DrawingMiscSnippets_snip' is correct. .NET Framework Available since 3.0 Return to top
( 1500 characters remaining)
Thank you for your feedback