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.
调用 System.Graphics.DrawString 时有没有办法拉伸 X 或 Y 轴?我们正在努力布置一个图形图像(实际上是要打印的),最好让一段特定的文本比它的正常高度高 125%(同时保持相同的宽度)。有没有最好的方法来做到这一点?
当然,只要您使用 Graphics.DrawString() 而不是 TextRenderer,Graphics.ScaleTransform() 就可以正常工作。保持适度,拉伸的文字看起来不太好。125%应该没问题。