Draw an Image in arbitrary corners
So i have a normal image. I defined Click- and Drag-Listeners on each corner of the rectangular image. I want to freely transform each of the corners and paint it on the screen. The AffineTransform class provides transformation possibilities but i couldn't find a way to realize this. I have implemented the same function in android with the Matrix.setPolytoPoly method. However there is no equivalent in java swing. Thanks! Edit: I would like to illustrate this process with the following image: This should happen when i drag one corner to the upper left. Now the problem that i have is, that i don