打印

糊涂了,谁能解释一下,谢谢

这是绘制一个椭圆:<Path Data="M 157,0 a 150,100 0 1,0 1,0 z" Stroke="Black"></Path>

帮助手册上写明:

A size rotationAngle isLargeArcFlag sweepDirectionFlag endPoint  


isLargeArcFlag:Set to 1 if the angle of the arc should be 180 degrees or greater; otherwise, set to 0.

sweepDirectionFlag:Set to 1 if the arc is drawn in a positive-angle direction; otherwise, set to 0.

isLargeArcFlag和sweepDirectionFlag设置为1或者0,为什么上面的椭圆两个都设为1,0

糊涂了, 谁能帮我解释一下这个Data属性?谢谢
<Path Data="M 157,0 a 150,100 0 1,0 1,0 z" Stroke="Black"></Path>
z:
Ends the current figure and creates a line that connects the current point to the starting point of the figure.
后面的1,0是终止坐标, 从157,0到1,0画一个elliptical arc

------------------------
在blend里试了一下, 终止坐标是相对值...

[ 本帖最后由 lbx1979 于 2007-10-18 09:49 编辑 ]
恩,谢谢
我又试了一下,在数字后面都加一个逗号,也正常.....
<Path Data="M 157,0 a 150,100, 0, 1,0, 1,0 z" Stroke="Black"></Path>
好奇怪的属性~~~而且把1,0改成0,0就不行了,开始点和结束点不能重合??
嗯, data属性允许用,或是空格来分开的

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!