code: public static LatLong fromPixels(double pixelX, double pixelY, long mapSize) {
          return new LatLong(pixelYToLatitude(pixelY, mapSize),
                  pixelXToLongitude(pixelX, mapSize));
      }
docs: Get LatLong from Pixels.