Revision 23767 trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/bands/ColorTableIntegerFilter.java

View differences:

ColorTableIntegerFilter.java
32 32
	 */
33 33
	public void process(int col, int line) {
34 34
		int value = raster.getElemInt(line, col, 0);
35
		byte[] rgba = colorTable.getRGBAByBand((double) (value & 0x000000ff));
35
		byte[] rgba = colorTable.getRGBAByBand((double) (value));
36 36
		rasterResult.setElemByte(line, col, rgba);
37 37
		if (hasAlpha)
38 38
			rasterAlpha.setElem(line, col, 0, rgba[3]);

Also available in: Unified diff