如何从java小程序视觉输出创建图像?
有没有办法从java小程序的视觉输出中创建图像? 或者,一个 RGB 值数组就足够了。
它需要类似于 Java Robot 类的“createScreenCapture(Rectangle screenRect)”,只不过它需要在小程序不可见时也能工作。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需使用 ImageIO.write(...); 保存缓冲区即可
您正在使用缓冲区吗?
如果您发布源代码,我会为您编写一个 saveOutput() 方法
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