Read the jpg file into a BufferedImage object and use its methods to access the image's pixels.