public int getPixelValue(byte[] imageBytes, int x, int y) {

        PngReaderInt reader = new PngReaderInt(new ByteArrayInputStream(imageBytes));
        validateImageType(reader);
        ImageLineInt row = (ImageLineInt) reader.readRow(y);
        int pixelValue = row.getScanline()[x];
        reader.close();

        return pixelValue;
    }
public int getPixelValue(byte[] imageBytes, int x, int y) {

        PngReaderInt reader = new PngReaderInt(new ByteArrayInputStream(imageBytes));
        validateImageType(reader);
        ImageLineInt row = (ImageLineInt) reader.readRow(y);
        int pixelValue = row.getScanline()[x];
        reader.close();

        return pixelValue;
    }
public int getPixelValue ( byte [ ] imageBytes , int x , int y ) { PngReaderInt reader = new PngReaderInt ( new ByteArrayInputStream ( imageBytes ) ) ; validateImageType ( reader ) ; ImageLineInt row = ( ImageLineInt ) reader . readRow ( y ) ; int pixelValue = row . getScanline ( ) [ x ] ; reader . close ( ) ; return pixelValue ; }
Get the pixel value as a 16 bit unsigned integer value

@param imageBytes image bytes
@param x          x coordinate
@param y          y coordinate
@return pixel value
Get the pixel value as a 16 bit unsigned integer value