摘要: 1 import java.awt.DisplayMode; 2 import java.awt.FlowLayout; 3 import java.awt.GraphicsDevice; 4 import java.awt.GraphicsEnvironment; 5 import java.awt.Insets; 6 import java.awt.event.ActionEvent; 7 import java.awt.event.ActionListener; 8 9 impor... 阅读全文
posted @ 2011-10-02 20:32 Acmen 阅读(1381) 评论(0) 推荐(0) 编辑
摘要: 从硬盘读取图片Image image = null; try { // Read from a file File file = new File("image.gif"); image = ImageIO.read(file); // Read from an input stream InputStream is = new BufferedInputStream( new FileInputStream("image.gif")); image = ImageIO.re... 阅读全文
posted @ 2011-10-02 19:23 Acmen 阅读(432) 评论(0) 推荐(0) 编辑