Justin
Justin

Reputation: 3

How to create image from java applet visual output?

Is there anyway to create an image from the visual output of a java applet? Alternatively, an array of rgb values would 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.

Upvotes: 0

Views: 711

Answers (1)

Stas Jaro
Stas Jaro

Reputation: 4885

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

Upvotes: 1

Related Questions