| 高级图像处理图像I/O API RC 1.0 |
|
|
|
|
| 来源: 作者:John Zukowski 添加日期:2006-6-11 8:57:14 点击次数: |
|
boolean found = ImageIO.write(image, selection, outputFile); if (found) { JDialog window = new JDialog(); Container windowContent = window.getContentPane(); BufferedImage newImage = ImageIO.read(outputFile); JLabel label = new JLabel(new ImageIcon(newImage)); JScrollPane pane = new JScrollPane(label); windowContent.add(pane, |
|
| |