标签:foreach csharp 参考 pre raw div combine geometry https
var drawingImage = new DrawingImage(drawing); if (drawing is GeometryDrawing) { var geometryDraing = (GeometryDrawing)drawing; var geo = geometryDraing.Geometry as PathGeometry; var pathGeometry = new PathGeometry(); foreach (var figure in geo.Figures) { pathGeometry.Figures.Add(figure); } var combineGeometry = Geometry.Combine(Geometry.Empty, pathGeometry, GeometryCombineMode.Union, geometryDraing.Geometry.Transform); geometryDraing.Geometry = combineGeometry; drawing = geometryDraing; }
标签:foreach csharp 参考 pre raw div combine geometry https
原文地址:http://www.cnblogs.com/pengzhong/p/applaytransformtogeometry.html