TextRenderer.DrawText in Bitmap vs OnPaintBackground

前端 未结 6 989
无人共我
无人共我 2020-12-18 03:01

If I use TextRenderer.DrawText() using the Graphics object provided in the OnPaintBackground my text looks perfect. If I create my own

6条回答
  •  情话喂你
    2020-12-18 04:00

    If your bitmap is not the same size as your display area, it might just be a resizing issue, where .NET scales the bitmap to the display size and you get funny looking text.

    Can you test with a bitmap created at the same size as your display area?

提交回复
热议问题