首页 新闻 搜索 专区 学院

如何处理expression design中矢量图导入到silverlight中时的路径合并问题

0
悬赏园豆:50 [已关闭问题] 关闭于 2013-04-18 15:47

就是将下面这三个路径(1,2,3)合并到同一个路径当中去(ps:弄出任意两个路径合并也是可以的)

1 .     <Ellipse x:Name="Ellipse" Width="55.993" Height="55.993" Canvas.Left="-2.6226e-005" Canvas.Top="-2.6226e-005" Stretch="Fill" StrokeThickness="2.99963" StrokeLineJoin="Round" Stroke="#FF02B1D0"/>
2 .      <Path x:Name="Path" Width="32.9308" Height="32.0384" Canvas.Left="11.7926" Canvas.Top="9.09805" Stretch="Fill" Fill="#FF02B1D0" Data="F1 M 29.5196,10.3219L 28.2594,9.09805L 25.5149,11.7609C 22.773,14.4264 17.2893,19.7573 14.5449,22.4227L 11.7926,25.0908L 12.2821,25.0986C 12.7743,25.0986 13.7585,25.0934 14.2532,25.0908L 14.7532,25.0856L 14.7488,27.7485C 14.7497,30.4191 14.7566,35.7657 14.7601,38.4416L 14.7662,41.1253L 19.2735,41.1305C 23.7729,41.1331 32.7666,41.1383 37.266,41.1357L 41.7707,41.1201L 41.7594,38.4555C 41.7533,35.7883 41.7464,30.4487 41.7429,27.7775L 41.7421,25.1039L 42.2472,25.1077C 42.7445,25.109 43.734,25.1091 44.2287,25.1091L 44.7234,25.1065L 44.0594,24.4477C 43.3955,23.7967 42.0675,22.5 41.4036,21.8517L 40.7396,21.2007L 40.7344,19.5108C 40.7292,17.8287 40.7188,14.4698 40.7162,12.7903L 40.7188,11.1082L 39.8855,11.1004C 39.0575,11.1004 37.4066,11.1056 36.5865,11.1082L 35.7793,11.116L 35.774,12.0143C 35.7715,12.8971 35.7715,14.652 35.774,15.5296L 35.7819,16.4044L 34.5242,15.1806C 33.2718,13.9646 30.7721,11.5379 29.5196,10.3219 Z "/>
3.      <Path x:Name="Path_0" Width="8.9928" Height="12.0527" Canvas.Left="23.7573" Canvas.Top="29.0702" Stretch="Fill" Fill="#FFBEFFFF" Data="F1 M 23.924,41.1229L 23.7573,41.1125L 23.7599,39.0971C 23.7625,37.0921 23.7677,33.0875 23.7694,31.0829L 23.7694,29.0714L 25.2693,29.0702C 26.7673,29.0723 29.7617,29.0775 31.2581,29.0806L 32.7501,29.0844L 32.7422,31.0908C 32.7405,33.0979 32.7405,37.113 32.7422,39.1162L 32.7474,41.1081L 32.5799,41.109C 32.4159,41.109 32.0913,41.1055 31.9264,41.1038L 31.7536,41.1072L 31.7493,39.2837C 31.7476,37.4445 31.7441,33.7558 31.745,31.914L 31.7511,30.08L 30.5793,30.0852C 29.4128,30.0878 27.085,30.093 25.9185,30.0956L 24.7467,30.1009L 24.7572,31.9444C 24.7624,33.7801 24.7676,37.4463 24.7702,39.2768L 24.7702,41.1021L 24.5931,41.1125C 24.4239,41.1177 24.0906,41.1229 23.924,41.1229 Z "/>

 

弄出类似下面这样的效果,之前试过在每两个路径之间用 z 连接,但都提示“路径无效”。

<Path Data="M14,36.000004 L28,36.000004 L28,38.000004 L14,38.000004 z M9.000001,36.000004 L11,36.000004 L11,38.000004 L9.000001,38.000004 z M14,30 L31,30 L31,32 L14,32 z M9.000001,30 L11,30 L11,32 L9.000001,32 z M5.000001,27.000004 L5.000001,41 C5.000001,41.552284 5.4477162,42 6.000001,42 L39,42 C39.552284,42 40,41.552284 40,41 L40,27.000004 z M14,22.000002 L14,24.000004 L27,24.000004 L27,22.000002 z M9,22.000002 L9,24.000004 L11,24.000004 L11,22.000002 z M14,13.000001 L23,13.000001 L23,15.000001 L14,15.000001 z M9.000001,13.000001 L11,13.000001 L11,15.000001 L9.000001,15.000001 z M14,7.000001 L36,7.000001 L36,9.000001 L14,9.000001 z M9,7.000001 L11,7.000001 L11,9.000001 L9,9.000001 z M6.000001,3.0000005 C5.4477162,3.0000005 5.000001,3.4477158 5.000001,4.0000005 L5.000001,19.000002 L40,19.000002 L40,4.0000005 C40,3.4477158 39.552284,3.0000005 39,3.0000005 z M6.000001,0 L39,0 C41.209141,0 43,1.7908611 43,3.9999998 L43,19.000002 C44.104568,19.000002 45,19.895432 45,21.000002 L45,25.000004 C45,26.104572 44.104568,27.000004 43,27.000004 L43,41 C43,43.209141 41.209141,45 39,45 L6.000001,45 C3.7908611,45 2,43.209141 1.9999999,41 L1.9999999,27.000004 C0.89543056,27.000004 0,26.104572 0,25.000004 L0,21.000002 C0,19.895432 0.89543056,19.000002 1.9999999,19.000002 L1.9999999,3.9999998 C2,1.7908611 3.7908611,0 6.000001,0 z" Fill="White" Stretch="Fill" />

枕头妹的主页 枕头妹 | 初学一级 | 园豆:160
提问于:2013-03-05 20:22
< >
分享
所有回答(2)
0

你直接在Blend4中设计这个效果.代码自动生成就可以啦

伏草惟存 | 园豆:1420 (小虾三级) | 2013-03-05 21:27

这个效果是一个图标,由3个path组成,想把这三个集合在同一个path里面,刚按你说的弄了下,没有成功。。。。

支持(0) 反对(0) 枕头妹 | 园豆:160 (初学一级) | 2013-03-05 21:42

@枕头妹: 你说的方法我没用过.但是既然是个图标,那么你在blend中把那个效果图设计出来(类似于ps效果),确定后.vs中就能达到效果.

支持(0) 反对(0) 伏草惟存 | 园豆:1420 (小虾三级) | 2013-03-05 21:47

@卿君: blend中自动生成的代码是多个路径。。。我就是想把多个组合到一个路径里面

支持(0) 反对(0) 枕头妹 | 园豆:160 (初学一级) | 2013-03-06 08:30
0

将路径复制到blend中去,选择要合并的,右击。。。合并,o(╯□╰)o以前怎么没有发现还有这个功能,但是颜色问题尚未解决,按这个方法的话,颜色也会被合并。。继续研究

枕头妹 | 园豆:160 (初学一级) | 2013-04-18 15:45
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册