Slow and steady Silverlight (38)

Source: Internet
Author: User
Tags xmlns silverlight

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.