Silverlight学习笔记之文字特效之ImageBrush
生活随笔
收集整理的這篇文章主要介紹了
Silverlight学习笔记之文字特效之ImageBrush
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
使用Silverlight創(chuàng)建文字遮罩特效要比Flash中的遮罩效果簡(jiǎn)單一些,ImageBrush可以輕松幫你搞定,不說(shuō)費(fèi)話,一看代碼便知! 代碼如下: <Canvas
??????? xmlns="http://schemas.microsoft.com/client/2007"
??????? xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
??????? x:Name="parentCanvas"
??????? Loaded="Page_Loaded"
??????? x:Class="DFModules.Page;assembly=ClientBin/DFModules.dll"
??????? Width="640"
??????? Height="480"
??????? Background="White"
??????? >
??? <TextBlock
??????? Text="http://BLOG.CSDN.NET/DOTFUN"
??????? Canvas.Top="195"
??????? FontFamily="Verdana"
??????? FontWeight="Bold"
??????? FontSize="30" Canvas.Left="42">
??????? <TextBlock.Foreground>
??????????? <ImageBrush ImageSource="5.jpg" />
??????? </TextBlock.Foreground>
??? </TextBlock>
??? <TextBlock
??????? Text="WWW.DOTFUN.CN"
??????? Canvas.Left="63.05" Canvas.Top="244"
??????? FontFamily="Verdana"
??????? FontWeight="Bold"
??????? FontSize="50">
??????? <TextBlock.Foreground>
??????????? <ImageBrush ImageSource="4.jpg" />
??????? </TextBlock.Foreground>
??? </TextBlock>
</Canvas>
??????? xmlns="http://schemas.microsoft.com/client/2007"
??????? xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
??????? x:Name="parentCanvas"
??????? Loaded="Page_Loaded"
??????? x:Class="DFModules.Page;assembly=ClientBin/DFModules.dll"
??????? Width="640"
??????? Height="480"
??????? Background="White"
??????? >
??? <TextBlock
??????? Text="http://BLOG.CSDN.NET/DOTFUN"
??????? Canvas.Top="195"
??????? FontFamily="Verdana"
??????? FontWeight="Bold"
??????? FontSize="30" Canvas.Left="42">
??????? <TextBlock.Foreground>
??????????? <ImageBrush ImageSource="5.jpg" />
??????? </TextBlock.Foreground>
??? </TextBlock>
??? <TextBlock
??????? Text="WWW.DOTFUN.CN"
??????? Canvas.Left="63.05" Canvas.Top="244"
??????? FontFamily="Verdana"
??????? FontWeight="Bold"
??????? FontSize="50">
??????? <TextBlock.Foreground>
??????????? <ImageBrush ImageSource="4.jpg" />
??????? </TextBlock.Foreground>
??? </TextBlock>
</Canvas>
總結(jié)
以上是生活随笔為你收集整理的Silverlight学习笔记之文字特效之ImageBrush的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 让VisualSVN Server支持匿
- 下一篇: 高级交叉报表例子程序(C#)中明细列统计