zoukankan      html  css  js  c++  java
  • silverlight画图 虚线 反射效果 射线渐变效果Radial Gradient

    <Polyline Stroke="Blue" StrokeThickness="14" StrokeDashArray="1 2"
     Points="10,30 60,0 90,40 120,10 350,10">
    </Polyline>

    DashArray="1 2"代表显示1段,隐藏2段

    <Grid x: Name="LayoutRoot" Background="White">
     <Grid.RowDefinitions>
     <RowDefinition></RowDefinition>
     <RowDefinition></RowDefinition>
     </Grid.RowDefinitions>
     <Image Grid.Row="0" Source="harpsichord.jpg"></Image>
     <Image Grid.Row="1" Source="harpsichord.jpg"></Image>
    </Grid>
    
    <Image Grid.Row="1" Source="harpsichord.jpg" RenderTransformOrigin="0,0.4">
     <Image.RenderTransform>
     <ScaleTransform ScaleY="-0.8"></ScaleTransform>
     </Image.RenderTransform>
     <Image.OpacityMask>
     <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
     <GradientStop Offset="0" Color="Transparent"></GradientStop>
     <GradientStop Offset="1" Color="#44000000"></GradientStop>
     </LinearGradientBrush>
     </Image.OpacityMask>
    </Image>

    射线渐变效果

    <Ellipse Margin="5" Stroke="Black" StrokeThickness="1" Width="200" Height="200">
     <Ellipse.Fill>
     <RadialGradientBrush RadiusX="1" RadiusY="1" GradientOrigin="0.7,0.3">
     <GradientStop Color="White" Offset="0" />
     <GradientStop Color="Blue" Offset="1" />
     </RadialGradientBrush>
     </Ellipse.Fill>
    </Ellipse>
  • 相关阅读:
    HDU_1711 Number Sequence(KMP)
    快速排序+归并排序
    贪心算法
    HDU_1496 Equations && POJ_1840 Eqs(Hash)
    POJ_1328 Radar Installation(贪心)
    HDU_1055 && POJ_2054 Color a Tree(贪心)
    HDU_1754 I Hate It (线段树)
    哈希(Hash)表学习笔记
    jQuery插件datepicker的使用详解
    json总结
  • 原文地址:https://www.cnblogs.com/xlyg-14/p/4852422.html
Copyright © 2011-2022 走看看