Fastest API for rendering text in Windows Forms?

后端 未结 6 2006
情深已故
情深已故 2020-12-29 10:49

We need to optimize the text rendering for a C# Windows Forms application displaying a large number of small strings in an irregular grid. At any time there can be well ove

6条回答
  •  情歌与酒
    2020-12-29 11:46

    Creating a C++/CLI interop class to do the drawing in native code will result in crazy-fast drawing. We've witnesses this and measured it.

    If you're not up to doing that, we've found graphics.DrawString is just slightly faster than than TextRenderer.DrawText.

提交回复
热议问题