原文:WPF制作Logo,很爽,今后在应用程序中加入Logo轻松,省事!

这是效果:

XAML代码:
<Viewbox Width="723.955078" Height="356.504883"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Canvas Width="723.955078" Height="356.504883">

<Canvas>

<Path Fill="#ffb20809" Data="F1 M 162.860840,115.039063 C 162.860840,115.039063 169.997559,89.062988 181.325684,70.918945 C 181.325684,70.918945 197.600098,44.892578 166.387695,48.350098 C 166.387695,48.350098 94.735840,69.039063 31.462891,6.388184 C 31.462891,6.388184 41.367188,66.716309 74.779297,84.832520 C 74.779297,84.832520 42.651855,99.907715 0.000000,79.743652 C 0.000000,79.743652 50.521484,164.243164 145.296387,150.525391 C 145.296387,150.525391 161.794922,119.929688 162.860840,115.039063 Z"/>

<Path Fill="#ff000000" Data="F1 M 159.818359,126.681152 C 159.818359,126.681152 127.000488,106.073242 163.690430,71.555664 C 163.690430,71.555664 170.563965,67.047852 176.109375,66.357422 C 176.109375,66.357422 183.385742,64.889648 184.948730,60.408691 C 184.948730,60.408691 185.861328,63.644531 180.038086,73.187988 C 180.038086,73.187988 165.294434,105.161621 159.818359,126.681152 Z"/>

<Path Data="F1 M 297.121094,167.866699 C 297.121094,167.866699 83.615234,145.713379 163.996582,71.029785 C 163.996582,71.029785 133.404297,83.559082 123.446777,125.187988 C 123.446777,125.187988 120.900391,139.875000 114.802246,152.708984 C 114.802246,152.708984 95.689453,199.207031 115.257324,216.106445 C 115.257324,216.106445 161.119629,270.154297 367.779297,259.701172 L 297.121094,167.866699 Z">
    <Path.Fill>
      <RadialGradientBrush MappingMode="Absolute" GradientOrigin="122.429199,390.227539" Center="122.429199,390.227539" RadiusX="209.185776" RadiusY="209.185776">
        <RadialGradientBrush.GradientStops>
          <GradientStop Offset="0.000000" Color="#fffa0e0b"/>
          <GradientStop Offset="1.000000" Color="#ffc30c09"/>
        </RadialGradientBrush.GradientStops>
        <RadialGradientBrush.Transform>
          <MatrixTransform Matrix="1.000000,0.000000,-0.000000,-1.000000,-12.433594,528.179688" />
        </RadialGradientBrush.Transform>
      </RadialGradientBrush>
    </Path.Fill>
  </Path>

</Canvas>

<Canvas>

<Path Fill="#ffb20809" Data="F1 M 561.079102,115.039063 C 561.079102,115.039063 553.943359,89.062988 542.630859,70.918945 C 542.630859,70.918945 526.366211,44.892578 557.551758,48.350098 C 557.551758,48.350098 629.207031,69.039063 692.505859,6.388184 C 692.505859,6.388184 682.602539,66.716309 649.177734,84.832520 C 649.177734,84.832520 681.277344,99.907715 723.955078,79.743652 C 723.955078,79.743652 673.393555,164.243164 578.646484,150.525391 C 578.646484,150.525391 562.158203,119.929688 561.079102,115.039063 Z"/>

<Path Fill="#ff000000" Data="F1 M 564.124023,126.681152 C 564.124023,126.681152 596.942383,106.073242 560.265625,71.555664 C 560.265625,71.555664 553.407227,67.047852 547.858398,66.357422 C 547.858398,66.357422 540.595703,64.889648 539.006836,60.408691 C 539.006836,60.408691 538.082031,63.644531 543.916992,73.187988 C 543.916992,73.187988 558.658203,105.161621 564.124023,126.681152 Z"/>

<Path Data="F1 M 426.832031,167.866699 C 426.832031,167.866699 640.354492,145.713379 559.946289,71.029785 C 559.946289,71.029785 590.538086,83.559082 600.523438,125.187988 C 600.523438,125.187988 603.040039,139.875000 609.153320,152.708984 C 609.153320,152.708984 628.263672,199.207031 608.697266,216.106445 C 608.697266,216.106445 562.835938,270.154297 356.175781,259.701172 L 426.832031,167.866699 Z">
    <Path.Fill>
      <RadialGradientBrush MappingMode="Absolute" GradientOrigin="-616.956543,390.227539" Center="-616.956543,390.227539" RadiusX="209.185776" RadiusY="209.185776">
        <RadialGradientBrush.GradientStops>
          <GradientStop Offset="0.000000" Color="#fffa0e0b"/>
          <GradientStop Offset="1.000000" Color="#ffc30c09"/>
        </RadialGradientBrush.GradientStops>
        <RadialGradientBrush.Transform>
          <MatrixTransform Matrix="-1.000000,0.000000,0.000000,-1.000000,-2.997070,528.179688" />
        </RadialGradientBrush.Transform>
      </RadialGradientBrush>
    </Path.Fill>
  </Path>

</Canvas>

<Path Data="F1 M 538.691406,178.238770 C 538.691406,276.709961 458.876953,356.504883 360.434570,356.504883 C 261.980469,356.504883 182.181641,276.709961 182.181641,178.238770 C 182.181641,79.796875 261.980469,0.000000 360.434570,0.000000 C 458.876953,0.000000 538.691406,79.796875 538.691406,178.238770 Z">
    <Path.Fill>
      <RadialGradientBrush MappingMode="Absolute" GradientOrigin="308.484375,473.705566" Center="308.484375,473.705566" RadiusX="390.049805" RadiusY="390.049805">
        <RadialGradientBrush.GradientStops>
          <GradientStop Offset="0.000000" Color="#fffa0e0b"/>
          <GradientStop Offset="1.000000" Color="#ff941106"/>
        </RadialGradientBrush.GradientStops>
        <RadialGradientBrush.Transform>
          <MatrixTransform Matrix="1.000000,0.000000,-0.000000,-1.000000,-12.433594,528.179688" />
        </RadialGradientBrush.Transform>
      </RadialGradientBrush>
    </Path.Fill>
  </Path>

<Path Data="F1 M 353.123535,14.000000 C 362.762207,22.885254 326.233398,29.904297 291.173340,52.685547 C 254.595215,76.453125 211.233398,120.237793 217.162109,94.837891 C 219.993652,82.706543 235.468750,56.349609 273.026855,34.022949 C 310.561523,11.683105 345.931152,7.369629 353.123535,14.000000 Z">
    <Path.Fill>
      <RadialGradientBrush MappingMode="Absolute" GradientOrigin="-342.146484,1143.186523" Center="-342.146484,1143.186523" RadiusX="88.733337" RadiusY="88.733337">
        <RadialGradientBrush.GradientStops>
          <GradientStop Offset="0.000000" Color="#ffffffff"/>
          <GradientStop Offset="1.000000" Color="#fffa0e0b"/>
        </RadialGradientBrush.GradientStops>
        <RadialGradientBrush.Transform>
          <MatrixTransform Matrix="0.859592,-0.511114,-0.265832,-0.447218,875.546936,374.882080" />
        </RadialGradientBrush.Transform>
      </RadialGradientBrush>
    </Path.Fill>
  </Path>

<Path Data="F1 M 147.585938,83.939941 C 149.398926,82.945313 152.625977,80.687988 147.668457,90.383301 C 145.066406,95.474121 144.805176,103.759766 145.797363,108.980469 C 146.554688,112.966309 148.900391,117.603027 151.976074,121.175781 C 159.041016,129.380371 171.011719,135.176270 168.073242,136.134277 C 163.862793,137.503906 144.171387,130.118164 137.432617,115.419922 C 132.470703,104.594727 143.700195,86.070801 147.585938,83.939941 Z">
    <Path.Fill>
      <RadialGradientBrush MappingMode="Absolute" GradientOrigin="-3741.737549,9186.284180" Center="-3741.737549,9186.284180" RadiusX="34.206806" RadiusY="34.206806">
        <RadialGradientBrush.GradientStops>
          <GradientStop Offset="0.000000" Color="#ffffffff"/>
          <GradientStop Offset="1.000000" Color="#fffa0e0b"/>
        </RadialGradientBrush.GradientStops>
        <RadialGradientBrush.Transform>
          <MatrixTransform Matrix="-0.310300,-0.950600,-0.763100,0.249100,5990.499512,-5731.129395" />
        </RadialGradientBrush.Transform>
      </RadialGradientBrush>
    </Path.Fill>
  </Path>

<Path Data="F1 M 559.503906,135.066406 C 557.458008,134.767090 552.741211,135.711426 562.163086,129.822754 C 567.009766,126.792969 573.668945,120.925781 576.023438,116.162109 C 577.821289,112.525879 579.345703,106.850098 579.043945,102.145020 C 578.352539,91.339355 570.428711,80.135742 573.351563,81.142578 C 577.537109,82.586426 590.966797,98.132324 587.484375,113.923340 C 584.921875,125.550781 563.888672,135.707520 559.503906,135.066406 Z">
    <Path.Fill>
      <RadialGradientBrush MappingMode="Absolute" GradientOrigin="7027.560547,8092.562988" Center="7027.560547,8092.562988" RadiusX="34.960037" RadiusY="34.960037">
        <RadialGradientBrush.GradientStops>
          <GradientStop Offset="0.000000" Color="#ffffffff"/>
          <GradientStop Offset="1.000000" Color="#fffa0e0b"/>
        </RadialGradientBrush.GradientStops>
        <RadialGradientBrush.Transform>
          <MatrixTransform Matrix="-0.325300,0.945600,0.759100,0.261100,-3274.685547,-8643.197266" />
        </RadialGradientBrush.Transform>
      </RadialGradientBrush>
    </Path.Fill>
  </Path>

<Path Fill="#ffffffff" Data="F1 M 332.562012,130.795410 C 332.562012,137.905762 338.575195,143.691895 345.965820,143.691895 C 353.450195,143.691895 359.539063,137.905762 359.539063,130.795410 C 359.539063,123.682129 353.450195,117.896484 345.965820,117.896484 C 338.575195,117.896484 332.562012,123.682129 332.562012,130.795410 Z M 395.780273,260.505859 C 399.307617,265.100586 401.208984,269.440430 401.208984,270.773438 C 401.208984,270.806641 401.206055,270.833008 401.201660,270.862305 C 400.583984,271.784180 398.885254,272.769531 396.399902,272.916016 C 392.776855,273.164063 388.970703,271.638672 385.263672,268.639648 C 389.189941,266.023438 392.664063,263.333984 395.780273,260.505859 Z M 411.919922,242.664063 C 413.064453,244.597656 413.687500,246.365234 413.687500,247.754883 C 413.687500,247.987305 413.672852,248.209961 413.635742,248.421875 C 413.561523,248.855469 413.391602,249.876953 411.552734,250.927734 C 408.576660,252.629883 405.977539,253.311523 404.030762,252.908203 C 403.856934,252.862305 403.781250,252.812500 403.638184,252.764648 C 406.593750,249.559570 409.378906,246.153320 411.919922,242.664063 Z M 423.230469,98.601074 C 423.929688,100.076660 424.235352,101.547852 424.235352,102.988770 C 424.235352,108.899414 419.126953,114.322266 414.984375,117.760742 C 407.344727,110.357910 397.887695,104.565430 386.745117,100.534180 C 400.806641,95.212891 420.015625,91.812012 423.230469,98.601074 Z M 341.924316,109.488770 C 408.547852,109.488770 418.495117,148.910156 418.495117,172.411133 C 418.495117,192.549805 410.253906,216.413086 396.982910,234.685547 C 381.686523,255.750000 361.594727,267.349609 340.406250,267.349609 C 320.501465,267.349609 307.641113,247.147461 307.641113,215.883301 C 307.641113,206.629883 309.008789,195.238770 309.858887,189.798340 C 336.371582,191.532715 351.081543,182.003906 357.538574,176.062012 C 363.759277,170.338379 367.625488,163.191406 367.625488,157.416504 C 367.625488,152.812500 363.803711,149.066406 359.107422,149.066406 C 354.613770,149.066406 350.730469,152.344238 350.266113,156.528809 C 349.663574,165.235840 337.572266,176.715820 312.619141,176.257813 C 316.364746,162.668945 321.487793,150.072266 324.952148,141.587402 L 327.958496,134.043457 L 327.971680,133.961914 C 328.198242,133.057617 328.198242,132.063477 328.198242,131.467773 C 328.198242,126.957520 324.377441,123.288086 319.681641,123.288086 C 316.164551,123.288086 312.928711,125.625000 311.625000,129.101563 C 303.240723,148.429199 298.590332,165.729492 297.093262,171.749023 C 292.662109,169.647461 282.435547,163.401367 282.435547,150.506836 C 282.435547,149.800293 282.466797,149.069336 282.530762,148.321777 C 284.240723,129.022949 305.191406,109.488770 341.924316,109.488770 Z M 373.029297,96.801758 C 363.943848,94.828125 354.137695,93.801758 343.102051,93.801758 C 343.102051,93.801758 342.695313,93.825195 342.290039,93.851074 C 342.284180,93.519043 342.262695,93.240234 342.262695,92.891602 C 342.262695,85.362793 343.806641,74.022461 349.313477,73.595215 C 357.294434,73.045410 368.605469,88.309082 373.029297,96.801758 Z M 347.852539,57.242188 L 347.823730,57.243652 C 341.354492,57.798828 329.964355,61.499512 326.364258,80.043945 C 325.403320,84.851563 325.163574,89.583496 325.163574,92.899414 C 325.163574,93.825195 325.184570,94.618652 325.209473,95.294922 C 289.776367,100.624023 265.163574,122.151855 265.163574,148.149902 C 265.163574,166.676758 275.629883,180.358887 293.230957,185.124023 C 292.051758,192.852051 290.944824,204.499023 290.944824,214.872070 C 290.944824,246.083008 303.810059,282.532227 340.068848,282.532227 C 352.777832,282.532227 364.820801,279.647461 375.909180,274.015625 C 382.201660,280.336914 389.687012,283.553711 397.155762,283.033203 C 402.915527,282.648438 407.833008,280.039063 410.300781,276.049805 C 411.259766,274.535156 411.740234,272.826172 411.740234,270.914063 C 411.740234,268.514648 410.953125,265.776367 409.440430,262.693359 C 411.697266,262.163086 414.127930,261.199219 416.827148,259.712891 C 420.980469,257.341797 423.468750,253.938477 424.051758,249.857422 C 424.134766,249.240234 424.171875,248.622070 424.171875,248.009766 C 424.171875,241.726563 420.102539,235.888672 418.078125,233.363281 C 429.374023,214.392090 435.868164,192.267578 435.868164,172.411133 C 435.868164,156.902832 432.150391,142.634277 425.170898,130.961914 C 427.333984,129.275879 430.081055,126.906250 432.840820,123.840820 C 438.537109,117.098145 441.407227,110.140625 441.407227,103.265137 C 441.407227,99.422363 440.510742,95.605957 438.705078,91.868164 C 435.126953,83.984375 425.700195,75.400879 401.248047,79.506348 C 394.962891,80.606445 389.053711,82.395020 385.046875,83.668457 C 376.708984,70.696289 363.724609,56.133301 347.852539,57.242188 Z"/>

</Canvas>
</Viewbox>

注:这个效果是曾经是使用Adobe Illustrator设计的,现在改用MS Expression Blend或Designer均可轻松实现。
在此之前,我曾经在GDI+中为画这个LOGO需要费很大的功夫(比如:在GDI+中,圆中间那个“萝卜鼠”的LOGO需要使用GraphicsPath及路径的组合),现在有了XAML,完全由设计工具自己来完成,省去了大量的C#编码。整个过程轻松搞掂了,这就是技术进步带来的好处了:)

WPF制作Logo,很爽,今后在应用程序中加入Logo轻松,省事!的更多相关文章

  1. WPF制作的小型笔记本

    WPF制作的小型笔记本-仿有道云笔记 楼主所在的公司不允许下载外部资源, 不允许私自安装应用程序, 平时记录东西都是用记事本,时间久了很难找到以前记的东西. 平时在家都用有道笔记, 因此就模仿着做了一 ...

  2. WPF制作的小时钟

    原文:WPF制作的小时钟 周末无事, 看到WEB QQ上的小时钟挺可爱的, 于是寻思着用WPF模仿着做一个. 先看下WEB QQ的图: 打开VS, 开始动工. 建立好项目后, 面对一个空荡荡的页面, ...

  3. 常用的sublime text插件(很爽哦)

    个人比较懒,平时喜欢用webstorm,但是因为webstorm打开实在太慢了,并且太看设备,所以本人编辑简单的文件依然会选择使用sublime,虽然网上有很多关于此类插件的分享了,但是感觉都是片段, ...

  4. 很多事情就像看A片,看的人觉得很爽,做的人未必。

    http://m.jingdianju.com/wzgs/shenghuo/201307185135.html 转载自: 从这个角度上来说,我不太赞成过于关注第一份工作的薪水,更没有必要攀比第一份工作 ...

  5. 常用的sublime text 3插件(很爽哦)

    个人比较懒,平时喜欢用webstorm,但是因为webstorm打开实在太慢了,并且太看设备,所以本人编辑简单的文件依然会选择使用sublime,虽然网上有很多关于此类插件的分享了,但是感觉都是片段, ...

  6. WPF制作表示透明区域的马赛克画刷

    最近在用WPF制作一款软件,需要像ps一样表示透明区域,于是制作了一个马赛克背景的style.实现比较简单,那么过程和思路就不表了,直接上代码 <DrawingBrush TileMode=&q ...

  7. 用Python写了一个postgresql函数,感觉很爽

    用Python写了一个postgresql函数,感觉很爽 CREATE LANGUAGE plpythonu; postgresql函数 CREATE OR REPLACE FUNCTION myfu ...

  8. WPF制作的党旗

    原文:WPF制作的党旗 --------------------------------------------------------------------------------引用或转载时请保 ...

  9. WPF 制作 Windows 屏保

    分享如何使用WPF 制作 Windows 屏保 WPF 制作 Windows 屏保 作者:驚鏵 原文链接:https://github.com/yanjinhuagood/ScreenSaver 框架 ...

随机推荐

  1. 使用maven进行测试设置断点调试的方法

    在Maven中配置测试插件surefire来进行单元测试,默认情况下,surefire会执行文件名以Test开头或结尾的测试用例,或者是以TestCase结尾的测试用例.               ...

  2. widow下svn上传项目时的文件可执行权限问题

    还是项目上发现的问题,要上传Android的源码项目.这里客户端是windows的机器, 测试后发现俩个问题. 1. 文件后缀是.so的文件默认上传不了.    2. 文件后缀是.sh的文件,上传后, ...

  3. icvPrecalculate

    /* *icvPrecalculate *作用:计算特征值,并排序 *详细来说也就是依据训练样本信息和haar特征信息,在函数内部引用icvGetTrainingDataCallback来 *分批计算 ...

  4. 监听text等的改变事件

    oninput事件是html5的标准事件,支持ie9和以上以及其他的火狐啊谷歌啊等浏览器 ie9以下的可以用onpropertychange <head>     <script t ...

  5. php curl 添加cookie伪造登陆抓取数据(摘自网络)

    有的网页必须登陆才能看到,这个时候想要抓取信息必须在header里面传递cookie值才能获取 1.首先登陆网站,打开firebug就能看到对应的cookie把这些cookie拷贝出来就能使用了 2. ...

  6. 【76.83%】【codeforces 554A】Kyoya and Photobooks

    time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard o ...

  7. 从多路搜索树到 B-树

    1. 什么是 B 树 B 树是为磁盘或其他直接存取的辅助存储设备而设计的一种平衡二叉树: B 树类似于红黑树,但它们在降低磁盘 I/O 操作数方面要更好一点, 许多数据库系统使用 B 树或者 B 树的 ...

  8. 【福利】微信小程序精选Demo合集

    小编最近在开发小程序,也读到了不少优秀的小程序源码,项目中有些需求可以直接从源码里粘贴复制过来,虽然这样做不利于自己独立编写代码,但比较是给公司做项目啊,秉着效率第一的原则,简直没有什么比ctrl+c ...

  9. 搭建微信小程序开发环境

    1.下载开发工具 点击进入下载地址选择和自己电脑匹配的安装包,并安装: image.png 安装完成后出现应用icon: image.png 2.创建项目 能够扫码登录的前提是微信号已经注册了小程序, ...

  10. 【a703】求逆序对(线段树的解法)

    Time Limit: 10 second Memory Limit: 2 MB 问题描述 给定一个序列a1,a2...an.如果存在i小于j 并且ai大于aj,那么我们称之为逆序对,求给定序列中逆序 ...