docs: private static Raster getRaster(final RenderedImage image) {
          return image instanceof BufferedImage
                 ? ((BufferedImage) image).getRaster()
                 : image.getNumXTiles() == 1 && image.getNumYTiles() == 1
                   ? image.getTile(0, 0)
                   : image.getData();
      }