POLITECHNIKA RZESZ'
// Klasa java.awt.Image
// Read from a file
File file = new File("mylmage.gif");
Image imagel = ImagelO.read(file);
// Read from an input stream
InputStream is = new BufferedInputStream(
new FilelnputStream("mylmage.gif")) ;
Image image2 = ImagelO.read(is);
// Read from a URL URL url = new
URL("http://j ava.prz.rzeszow.pl/mylmage.gif"); Image image3 = ImagelO.read(url);
TSW Wykład 6
Copyright 02012 Jan PROKOP
28/115