Reputation: 3694
I would like to free transform an Android image. I have gotten comfortable using a matrix to skew a bitmap see below (just imagine the red shape is replaced with a bitmap or jpeg image):
What I want to do is be able to free transform the image. So for example only move 1 corner and have the other corners stay in the same location. What is an effective way of doing that?
Is there some sort of matrix math that I would need to do to do this?
Upvotes: 2
Views: 3494
Reputation: 3694
matrix.setpolytopoly addresses this issue. Above is a link that I found to it.
Upvotes: 3