Changeset 5470 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2012-08-22T00:06:22+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapImage.java
r5257 r5470 6 6 import java.awt.Image; 7 7 import java.awt.Rectangle; 8 import java.awt.Toolkit; 8 9 import java.awt.image.BufferedImage; 10 import java.awt.image.FilteredImageSource; 11 import java.awt.image.ImageProducer; 9 12 10 13 import javax.swing.GrayFilter; … … 46 49 if (img == null) 47 50 getImage(); // fix #7498 ? 48 return disabledImg = GrayFilter.createDisabledImage(img); 51 ImageProducer ip = new FilteredImageSource(img.getSource(), new GrayFilter(true, 20)); 52 disabledImg = Toolkit.getDefaultToolkit().createImage(ip); 53 return disabledImg; 49 54 } 50 55
Note:
See TracChangeset
for help on using the changeset viewer.