return (int) ((generateMask (2) & rgb[pixel]) >> (2 * pixel_bits));
return (0x00FF0000 & rgb[pixel]) >> 16;
  public final int getRed (int pixel)  {    if (pixel < map_size)	    return (int) ((generateMask (2) & rgb[pixel]) >> (2 * pixel_bits));    			return 0;		}