title: Map 2d rectangular image to 4 coordinate points in Java
body: <p>I have a rectangular image of some bricks and I would like to map it to a Java canvas screen where each corner point of the rectangle is defined. For example, I want the top left corner of the image to be at point x, y (0,2), the bottom left corner defined at (0,0), top right corner defined at (2,3), and bottom right corner defined at (2,0). As you can see, the top right corner of the image is slightly higher/stretched up in comparison to the other corners of the image. Is there a Java library that can do this sort of thing?</p>
  
  <p>In short: I want to define each corner coordinate of a rectangular image, but don't know how.</p>