code: protected boolean isTransparent(BufferedImage image) {
  		boolean transparent = false;
  		if (image != null) {
  			WritableRaster raster = image.getAlphaRaster();
  			if (raster != null) {
  				transparent = true;
  				done: for (int x = 0; x < image.getWidth(); x++) {
  					for (int y = 0; y < image.getHeight(); y++) {
  						if (raster.getSample(x, y, 0) > 0) {
  							transparent = false;
  							break done;
  						}
  					}
  				}
  			}
  		}
  		return transparent;
  	}
docs: Determine if the image is transparent
  
  @param image
  image
  @return true if transparent