开发者

Do Java2d or Java Advanced Imaging need to be installed by the end user before they can be used?

I am making a game engine that will run开发者_开发技巧 in an applet, that would need to be able to do things like Perspective transform (for Mode 7), basic transforms (drawing an image at custom corner points), etc, and if possible could either of those be embedded directly in my applet without needing the end user to install them?


Java2D is included in the JVM by default - there are no additional requirements to use it, even from an applet. You can perform any affine transformation with Java2D. This includes a perspective transformation, or translation to render images in various ways.

Here's an example of using Graphics2D with an applet:

http://download.oracle.com/javase/1.4.2/docs/guide/2d/spec/j2d-awt.html

Java Advanced Imaging is not part of the JVM, but you can bundle it with your project AFAIK: http://java.net/projects/jai/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜