int srcVal = 0;
int dstVal = 0;
if (comp instanceof AlphaComposite)
{
compType = AlphaCompositeMode;
AlphaComposite ac = (AlphaComposite) comp;
rule = ac.getRule();
srcConstAlpha = (int) (ac.getAlpha() * 255 + 0.5f);
}
else if (comp instanceof XORComposite)
{
compType = XORMode;
XORComposite xor = (XORComposite) comp;