geopackage-sdk/src/main/java/mil/nga/geopackage/extension/coverage/CoverageDataPngImage.java
public int getPixel(int x, int y) {
        int pixel = -1;
        if (pixels == null) {
            readPixels();
        }
        if (pixels != null) {
            pixel = pixels[y][x];
        } else {
            throw new GeoPackageException("Could not retrieve pixel value");
        }
        return pixel;
    }
public int getPixel(int x, int y) {
        int pixel = -1;
        if (pixels == null) {
            readPixels();
        }
        if (pixels != null) {
            pixel = pixels[y][x];
        } else {
            throw new GeoPackageException("Could not retrieve pixel value");
        }
        return pixel;
    }
Get the pixel at the coordinate

@param x x coordinate
@param y y coordinate
@return pixel value