TextRenderer.DrawText in Bitmap vs OnPaintBackground

前端 未结 6 987
无人共我
无人共我 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 03:53

    Another possible solution: Draw the whole thing to the screen, bitmap with text on top, and then write some code to 'screen capture' that portion of the screen. Not practical in all cases but you're right, DrawString creates weird text and DrawText onto a bitmap looks horrible.

提交回复
热议问题