- Timestamp:
- 2012-03-05T20:42:06+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java
r4822 r5045 47 47 import org.openstreetmap.josm.gui.mappaint.BoxTextElemStyle.VerticalTextAlignment; 48 48 import org.openstreetmap.josm.gui.mappaint.MapImage; 49 import org.openstreetmap.josm.gui.mappaint.NodeElemStyle;50 49 import org.openstreetmap.josm.gui.mappaint.NodeElemStyle.Symbol; 51 50 import org.openstreetmap.josm.gui.mappaint.TextElement; 52 51 import org.openstreetmap.josm.tools.ImageProvider; 53 52 import org.openstreetmap.josm.tools.Pair; 53 import org.openstreetmap.josm.tools.Utils; 54 54 55 55 public class MapPainter { … … 820 820 new Rectangle(0, 0, fillImage.img.getWidth(null), fillImage.img.getHeight(null))); 821 821 g.setPaint(texture); 822 if (fillImage.alpha != 1f) { 823 g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, fillImage.alpha)); 822 Float alpha = Utils.color_int2float(fillImage.alpha); 823 if (alpha != 1f) { 824 g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha)); 824 825 } 825 826 g.fill(area);
Note:
See TracChangeset
for help on using the changeset viewer.