Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试以编程方式获取 Geometry icon = myDrawingImageobj.SOMETHING
有没有办法从绘图图像中提取几何数据?
如果 DrawingImage 的Drawing属性实际上包含 a GeometryDrawing,您可以像这样简单地转换它:
Drawing
GeometryDrawing
var geometryDrawing = (GeometryDrawing)myDrawingImageobj.Drawing; var icon = geometryDrawing.Geometry;