Back to the "Steady Silverlight 3.0 series Article index"
Steady Silverlight (38)-3.0 filter Blureffect,dropshadoweffect, custom filter, 3D effect planeprojection, bitmap API WriteableBitmap
Introduced
What's new in Silverlight 3.0 graphics systems
Blureffect-Blur Filter
Dropshadoweffect-Shadow Filter
Custom Filters
Planeprojection-Map The UIElement of the plane to 3D
WriteableBitmap-Bitmap API (Bitmap API)
Online Demo
Http://www.cnblogs.com/webabcd/archive/2009/08/04/1538238.html
Example
1, the fuzzy Filter (Blureffect) Demo
Blureffect.xaml
<navigation:page x:class= "Silverlight30.Graphic.BlurEffect"
Xmlns= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml"
Xmlns:d= "http://schemas.microsoft.com/expression/blend/2008"
Xmlns:mc= "http://schemas.openxmlformats.org/markup-compatibility/2006"
Mc:ignorable= "D"
xmlns:navigation= "Clr-namespace:system.windows.controls;assembly=system.windows.controls.navigation"
D:designwidth= "640" d:designheight= "480"
title= "Blureffect Page" >
<grid x:name= "LayoutRoot" >
<StackPanel>
<!--
Blur of filter effect
Blureffect-Blur Effect
Blureffect.radius-Fuzzy radius. The larger the blur, the default value is 5
-->
<image source= "/resource/logo.jpg" >
<Image.Effect>
<blureffect x:name= "Blureffect" radius= "5"/>
</Image.Effect>
</Image>
<slider width= "minimum=" 0 "maximum=" value= "{Binding Radius, Mode=twoway, elementname=blureffect}"/>
</StackPanel>
</Grid>
</navigation:Page>