public int getOffset(int x, int y) { int offset = y * scanlineStride; offset += (x * pixelBitStride + dataBitOffset) / dataElementSize; return offset;
public int getOffset(int x, int y) { return scanlineStride * y + ((dataBitOffset + x*numberOfBits) / elemBits);
	public int getOffset(int x, int y) {		int offset = y * scanlineStride;		offset += (x * pixelBitStride + dataBitOffset) / dataElementSize;		return offset;	}