Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你好我只是Java的初学者。
我有这样的图像:
如何使用java.awt.Graphics2D这样的方法将此图像变形为新形式?
java.awt.Graphics2D
Java2D只能做仿射变换。这意味着使用与您的示例相同的矩形,您可以制作平行四边形,而不是梯形(或其他图形)。
Java2D
我从来没有使用过它,但也许你会通过Java 3D API找到你需要的东西。