摘要:
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... 阅读全文
摘要:
从硬盘读取图片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... 阅读全文