How to save Geometry as image?
问题 How to save Geometry as image? For example i have List<Geometry> . I want it to be as follows: for (int i = 0; i < GeometryList.Count; i++) { Pen TestPen = new Pen(Brushes.Black, 1); GeometryDrawing TestDrawing = new GeometryDrawing(Brushes.Black, TestPen, TestGeometry); Bitmap b = TestDrawing as Bitmap; b.Save(System.AppDomain.CurrentDomain.BaseDirectory + i + ".png", ImageFormat.Png); } Update: The code I wrote a few hours ago: private void CreateFontMap(string PathTofont) { GlyphTypeface