code: public int[] PixelsToRaster( int px, int py, int zoom ) {
          int mapSize = tileSize << zoom;
          return new int[]{px, mapSize - py};
      }
docs: Move the origin of pixel coordinates to top-left corner
  
  @param px
  @param py
  @param zoom
  @return