How can I render curved text into a Bitmap?

前端 未结 3 552
无人及你
无人及你 2020-12-05 22:01

I am currently dynamically creating a bitmap and using the graphics object from the bitmap to draw a string on it like so:

System.Drawing.Graphics graph = Sy         


        
3条回答
  •  暖寄归人
    2020-12-05 22:46

    I think the only way is to render each character individually and use the

    Graphics.RotateTransform
    

    to rotate the text. You'll need to work out the rotation angle and rendering offset yourself. You can use the

    Graphics.MeasureCharacterRanges
    

    to get the size of each character.

提交回复
热议问题