我正在使用GraphicsPath.AddString()
函数,但它会在文本周围绘制一些空白。有什么办法可以只绘制文本路径而不带有填充?
我的代码如下:
GraphicsPath gp = new GraphicsPath();
gp.AddString(text, font.FontFamily, (int)font.Style, font.Size,
boundsRectangle, format);
g.DrawPath(pen, gp);
我正在使用GraphicsPath.AddString()
函数,但它会在文本周围绘制一些空白。有什么办法可以只绘制文本路径而不带有填充?
我的代码如下:
GraphicsPath gp = new GraphicsPath();
gp.AddString(text, font.FontFamily, (int)font.Style, font.Size,
boundsRectangle, format);
g.DrawPath(pen, gp);