List of usage examples for java.awt.image IndexColorModel getGreen
public final int getGreen(int pixel)
From source file:org.apache.fop.render.pdf.ImageRenderedAdapter.java
/** {@inheritDoc} */ @Override//from www . ja v a2 s . com public PDFColor getTransparentColor() { ColorModel cm = getEffectiveColorModel(); if (cm instanceof IndexColorModel) { IndexColorModel icm = (IndexColorModel) cm; if (cm.getTransparency() == IndexColorModel.TRANSLUCENT) { int transPixel = icm.getTransparentPixel(); return new PDFColor(icm.getRed(transPixel), icm.getGreen(transPixel), icm.getBlue(transPixel)); } } return new PDFColor(getImage().getTransparentColor()); }