Color bgColor = getBackgroundColor(); if (bgColor == null) { bgColor = Color.BLACK;
if (images != null && images.length > 0) { ColorModel cmref = images[0].getColorModel(); Color backgroundColor = getBackgroundColor(); if (cmref instanceof IndexColorModel && (cmref.getTransparency() != IndexColorModel.OPAQUE