Unwanted Warp effect drawing text on path android

前端 未结 1 2021
心在旅途
心在旅途 2021-02-18 22:26

I do some tests on drawing text on path. I made a background picture by setting bitmap to the canvas. Then, I draw text on a path to canvas, rotated by matrix. I have to shorten

1条回答
  •  遇见更好的自我
    2021-02-18 22:38

    I would try setting the

    this.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
    

    before drawing to screen, since lower quality might imply a simpler transformation of the text. This is just guessing of course. Currently your only setting the high quality before writing to disk. Or simply remove it from the write to disk method to check if it affect the way the text is drawn.

    0 讨论(0)
提交回复
热议问题