for (i = 0; i < max; i++) { c[i] = (byte) (rgb[i] >> (ci * 8)); }
for (i = 0; i < max; i++) c[i] = (byte) ((generateMask (ci)  & rgb[i]) >> (ci * pixel_bits));
	private void getComponents(byte[] c, int ci) {		int i, max = (map_size < c.length) ? map_size : c.length;		for (i = 0; i < max; i++) {			c[i] = (byte) (rgb[i] >> (ci * 8));		}	}