public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) {
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if(model == origmodel && (model instanceof IndexColorModel) && canFilterIndexColorModel) {
	public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) {		if (model == origmodel) {			consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize);		} else {			//FIXME			//convert to proper CM			int pixelsi[] = new int[pixels.length / 4];			filterRGBPixels(x, y, w, h, pixelsi, offset, scansize);		}	}