2012年11月23日

路径和几何图形

摘要: 继承自Shap类的形状有:Rectangle、Ellipse、Polygon以及Polyline。这些类相对比较简单,还有一个继承自Shap类,并且功能最强大的类,即Path类。Path类可以包含任何简单形状、多组形状以及更复杂的要素,如曲线。Path类提供了一个Data属性,该属性接受一个Geometry对像,Geometry是一个抽像类,不能直接创建。而需要使用如下的某个派生类创建。LineGeometry:线RectangleGeometry:矩形EllipseGeometry:椭圆GeometryGroup:图形组CombinedGeometry:合并图形PathGeometry:代. 阅读全文

posted @ 2012-11-23 01:09 老杨999 阅读(1577) 评论(1) 推荐(2) 编辑

导航