Ignore:
Timestamp:
2010-01-13T22:25:05+01:00 (15 years ago)
Author:
jttt
Message:

Use alpha in cached image only if source image also has alpha

File:
1 edited

Legend:

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

    r19417 r19507  
    55import java.awt.Image;
    66import java.awt.Point;
     7import java.awt.Transparency;
    78import java.awt.image.BufferedImage;
    89import java.io.IOException;
     
    7778                }
    7879
    79                 boolean alphaChannel = Main.pref.getBoolean("wmsplugin.alpha_channel");
     80                boolean alphaChannel = Main.pref.getBoolean("wmsplugin.alpha_channel") && image.getTransparency() != Transparency.OPAQUE;
    8081
    8182                try {
Note: See TracChangeset for help on using the changeset viewer.