How to distort an image to any quadrangle?

前端 未结 5 1275
执念已碎
执念已碎 2020-12-16 05:19

Do any of you have an idea, how to distort an image in any quadrangle? I want to implement an image, which you can pull any corner in any direction, distorting the image. A

5条回答
  •  星月不相逢
    2020-12-16 06:01

    matrix.setPolyToPoly and canvas.drawBitmap can't solve all matrix transformations. Here I found a solution using canvas.drawBitmapMesh.

    Distorting an image to a quadrangle fails in some cases on Android

提交回复
热议问题