开发者

Is there a fast way to draw text in WPF

I need to display a lot of text in my WPF window.

I am using Drawi开发者_开发技巧ngContext.DrawText but it is too slow.

I tried DrawingContext.DrawGlyph. The call itself is faster but if you count the glyph creation, it is about the same time.

Is there a way to speed things up even it means loosing text quality?


Have you tried with TextBlock controls ? I put them on a Canvas, and for me it turned out to be faster than solutions involving FormattedText or DrawingContext.DrawGlyphRun().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜