Silverlight中进行图形标绘的方法太多了,这里的标绘和Arcgis中的标绘不同,这里大多是静态的标绘。标绘的方法主要有Path(路径标记法)、直接标绘(Line等)、几何标记(LineGeometry等)。

1.路径标记法

路径标记在silverlight中是非常重要的一种标绘方法,通过路径标记,我们可以标绘多种形状的曲线或者直线。下面直接直接上代码。

1  <Path Stroke="Blue" Data="M 0,0 L 0,0 10,10 20,20 50,50"></Path>
2             <Path Stroke="Red" Data="M 50,50 H 60 80 150"></Path>
3             <Path Stroke="Green" Data="M 150,50 V 50 150"></Path>
4           
5             <Path Stroke="GreenYellow" Data="M 100,200 C 100,25 400,350 400,175 H 280" StrokeThickness="3"></Path>
Path

相关文章:

  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2022-02-08
  • 2022-02-11
  • 2021-06-19
  • 2022-12-23
  • 2021-04-21
猜你喜欢
  • 2022-01-24
  • 2022-03-07
  • 2022-01-07
  • 2021-10-30
  • 2021-11-30
相关资源
相似解决方案