implemanting freehand crop in android

后端 未结 3 497
猫巷女王i
猫巷女王i 2021-01-02 11:33

i m trying to implement freehand crop in android using canvas. i use drawPath and store it in List and draw it in canvas path drawing ok,

like this

3条回答
  •  再見小時候
    2021-01-02 12:26

    You can use Canvas.clipPath to draw only cropped region. But be awared that this method doesn't work with hardware acceleration so you have to turn it off and use software rendering.

提交回复
热议问题