【发布时间】:2012-07-15 05:07:04
【问题描述】:
BufferedImage 有一个返回 Image 的 getSubimage(x, y, width, height) 方法。我在 JPanel 上绘制图形,如何使用 JPanel 执行类似于 BufferedImage 方法的操作?
例如(如果它是正确的):
BufferedImage bi = jPanel.getSubimage(x, y, width, height);
谢谢
【问题讨论】:
标签: java graphics jpanel bufferedimage