Changeset 10703 in osm for applications/editors/josm/plugins
- Timestamp:
- 2008-09-15T13:40:26+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/YAHOOGrabber.java
r10684 r10703 38 38 ProcessBuilder builder = new ProcessBuilder( cmdParams); 39 39 40 41 40 Process browser; 42 41 try { 43 42 browser = builder.start(); 44 } 45 catch(IOException ioe) { 43 } catch(IOException ioe) { 46 44 throw new IOException( "Could not start browser. Please check that the executable path is correct.\n" + ioe.getMessage() ); 47 45 } 48 46 49 BufferedImage i = new BufferedImage(width(), height(), BufferedImage.TYPE_INT_RGB); 50 Image img = ImageIO.read(browser.getInputStream()).getScaledInstance(width(), height(), Image.SCALE_FAST); 51 i.getGraphics().drawImage(img, 0 , 0, null); 52 return i; 47 return ImageIO.read(browser.getInputStream()); 53 48 } 54 49 }
Note:
See TracChangeset
for help on using the changeset viewer.