有没有办法像这样进行转换?
System.Widows.Shapes.Path into System.Drawing.Drawing2D.GraphicPath
我想将我的 Windows.Shapes.Path 绘制到位图中:
Dim bmp As New Bitmap(300, 300)
Dim g As System.Drawing.Graphics
g = Graphics.FromImage(bmp)
g.DrawPath(New System.Drawing.Pen(System.Drawing.Color.Black), myPath)
或者,是否有一些方法可以将 Windows 形状插入图像?