Blurry offset paths when canvas is scaled under hardware acceleration

前端 未结 3 982
情话喂你
情话喂你 2020-12-29 15:48

My application uses a canvas that I scale so that I can specify path points in meters instead of pixels. When I scale the canvas, then draw a line using path.lineTo()<

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-29 16:44

    Another way to get around this issue as I've found is to draw the Paths to another Canvas that is backed by a cache bitmap, and then draw that bitmap to the passed Canvas. This eliminates the blurring and offsets in my situation.

提交回复
热议问题