if (b >= numColors) { if (DEBUG) Debug.output("OMRaster:.computePixels() problem!: " + b);
try { if (b >= numColors) { if (DEBUG) Debug.output("OMRaster:.computePixels() problem!: " + b); color = clear.getRGB();  } else if (b < 0) { color = colors[MoreMath.signedToInt(b)]; } else { color = colors[b]; } } catch (ArrayIndexOutOfBoundsException aiiobe) {  if (DEBUG) { Debug.output("OMRaster.computePixels() problem, can't find color for index: "  + aiiobe.getMessage()); }
    protected boolean computePixels() {        if (DEBUG) Debug.output("OMRaster.compute pixels!");        int i;        if (colorModel != COLORMODEL_INDEXED) {            return true;        }                if (colors == null || colors.length == 0) {            Debug.error("OMRaster: attempting to compute pixels without color table!");            return false;        }        int nPixels = width * height;        if (DEBUG) {            Debug.output("Computing pixels for image size:" + width + ", " + height);        }        // pixels are the image pixels        pixels = new int[nPixels];        // Now, using the new constructed color table, build a set of        // pixels.        // alpha is a ready, shifted version of the overall transparency value;        int alpha = (transparent << 24) & 0xff000000;        // numColors is the number of colors.        int numColors = colors.length;        for (i=0; i < nPixels; i++) {            byte b = bits[i];            int color;            // make the alpha for this color the lessor of what the            // colortable is, versus the transparent value            //              int pixAlpha;            if (b >= numColors) {                if (DEBUG) Debug.output("OMRaster:.computePixels() problem!: " + b);                color = clear.getRGB();            } else if (b < 0) {                color = colors[MoreMath.signedToInt(b)];            } else {                color = colors[b];            }            // OK, got an int value, argb, for the color to be put on            // the pixel.  Now we need to straighten out the            // transparency.            if (transparent < 255 && ((color >> 24) > transparent)) {                // this means that the overall transparency should be                // more (lower number, more transparent) than the                // pixel color.                color =  alpha | (0x00FFFFFF & color);            } // Otherwise, just go with the alpha value set on the color...            pixels[i] = color;        }        return true;    }