return strategy.pack(data, offset, bytesPerPixel);
switch(javaType) { case PlaneFactory.BYTE: byte i = data.get(offset); return i; case PlaneFactory.SHORT: return data.getShort(offset); case PlaneFactory.INT: return data.getInt(offset); case PlaneFactory.FLOAT: return data.getFloat(offset); case PlaneFactory.DOUBLE: return data.getDouble(offset); } throw new RuntimeException("Unknown pixel type.");
	public double getPixelValue(int x1, int x2) 	{		int offset = calculateOffset(x1, x2);		return strategy.pack(data, offset, bytesPerPixel);	}