ControlAltDelete
ControlAltDelete

Reputation: 3694

Free Transform Android Image

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):

enter image description here

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

Answers (1)

ControlAltDelete
ControlAltDelete

Reputation: 3694

setPolyToPoly not applied

matrix.setpolytopoly addresses this issue. Above is a link that I found to it.

Upvotes: 3

Related Questions