Ignore:
Timestamp:
2008-09-15T13:40:26+02:00 (16 years ago)
Author:
petrdlouhy
Message:

removed unneeded rescaling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/YAHOOGrabber.java

    r10684 r10703  
    3838                ProcessBuilder builder = new ProcessBuilder( cmdParams);
    3939
    40 
    4140                Process browser;
    4241                try {
    4342                        browser = builder.start();
    44                 }
    45                 catch(IOException ioe) {
     43                } catch(IOException ioe) {
    4644                        throw new IOException( "Could not start browser. Please check that the executable path is correct.\n" + ioe.getMessage() );
    4745                }
    4846
    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());
    5348        }
    5449}
Note: See TracChangeset for help on using the changeset viewer.