ColorModel dstCM = dst.getColorModel();
Region roi = CustomComponent.getRegionOfInterest(src, dst, clip,
srcx, srcy,
dstx, dsty, w, h);
SpanIterator si = roi.getSpanIterator();
int xorrgb = ((XORComposite)comp).getXorColor().getRGB();
Object xorPixel = dstCM.getDataElements(xorrgb, null);
Object srcPixel = null;
Object dstPixel = null;
int srcScan = icr.getScanlineStride();
// assert(icr.getPixelStride() == 1);
srcx -= dstx;
srcy -= dsty;
int span[] = new int[4];
while (si.nextSpan(span)) {
int rowoff = (icr.getDataOffset(0) +
(srcy + span[1]) * srcScan +
(srcx + span[0]));
for (int y = span[1]; y < span[3]; y++) {
int off = rowoff;