我在哪里可以获得眼球的XAML路径?

时间:2011-06-10 01:13:21

标签: c# wpf xaml path shape

我有一个星星看起来像:

  Data="M 61.3431396484375,0 C61.3431396484375,0 80.2991943359375,38.40919494628906 80.2991943359375,38.40919494628906 80.2991943359375,38.40919494628906 122.686279296875,44.56840515136719 122.686279296875,44.56840515136719 122.686279296875,44.56840515136719 92.01470947265625,74.46580505371094 92.01470947265625,74.46580505371094 92.01470947265625,74.46580505371094 99.25527954101562,116.68159484863281 99.25527954101562,116.68159484863281 99.25527954101562,116.68159484863281 61.3431396484375,96.75 61.3431396484375,96.75 61.3431396484375,96.75 23.430999755859375,116.68159484863281 23.430999755859375,116.68159484863281 23.430999755859375,116.68159484863281 30.67156982421875,74.46580505371094 30.67156982421875,74.46580505371094 30.67156982421875,74.46580505371094 0,44.56840515136719 0,44.56840515136719 0,44.56840515136719 42.3870849609375,38.40919494628906 42.3870849609375,38.40919494628906 42.3870849609375,38.40919494628906 61.3431396484375,0 61.3431396484375,0 z"                                         

3 个答案:

答案 0 :(得分:5)

任何问题的最佳策略,例如“我在哪里可以获得XYZZY的XAML路径?”是从Open Clip Art Library找到一些剪贴画,如:

选择你想要的那个,然后使用Inkscape将其从SVG格式转换为XAML:

只需加载SVG文件,然后保存为XAML。

这是截图,我刚从上面的搜索结果中转换了一个:

enter image description here

答案 1 :(得分:2)

答案 2 :(得分:0)

  

我在哪里可以获得眼球的XAML路径?

不是来自我。到底究竟应该是什么样的?

顺便说一下,您发布的数据字符串只是一种压缩形式,您可以通过将circles设置为数据轻松创建PathGeometry和其他形状,请参阅How to: Create a Shape using PathGeomertry并使用EllipseGeometries

(由于眼球由多种形状this article组成,因此也可能会感兴趣)