开发者

How to create image from java applet visual output?

开发者 https://www.devze.com 2023-03-10 22:53 出处:网络
Is there anyway to create an image from the visual output of a java applet? Alternatively, an array of rgb values 开发者_如何学Pythonwould suffice.

Is there anyway to create an image from the visual output of a java applet? Alternatively, an array of rgb values 开发者_如何学Pythonwould suffice.

It needs to be similar to Java Robot class' "createScreenCapture(Rectangle screenRect)" except it needs to work even when the applet is not visible.


simply save the buffer with ImageIO.write(...);

You are using a buffer right?

if you post the source ill write a saveOutput() method for you

0

精彩评论

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

关注公众号