Changeset 17827 in josm
- Timestamp:
- 2021-04-26T20:12:34+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageResource.java
r17728 r17827 192 192 if (baseImage == null) throw new AssertionError(); 193 193 ImageIcon icon = new ImageIcon(baseImage); 194 if (dim.width == icon.getIconWidth() && dim.height == icon.getIconHeight()) { 195 return icon; 196 } 197 194 198 img = resizeMode.createBufferedImage(dim, new Dimension(icon.getIconWidth(), icon.getIconHeight()), 195 199 null, icon.getImage());
Note:
See TracChangeset
for help on using the changeset viewer.