code: private long getPixelNumber(long fileOffset) {
  		assert fileOffset >= 0;
  		long result = Math.round(fileOffset / bytesPerPixel());
  		assert result >= 0;
  		return result;
  	}
docs: convert fileOffset to square pixels