docs: public static ByteBuffer getImageData(BufferedImage image, Format format) {
          final int width = image.getWidth();
          final int height = image.getHeight();
          final int type = image.getType();
          final int[] pixels;
          if (type == BufferedImage.TYPE_INT_ARGB || type == BufferedImage.TYPE_INT_RGB) {
              pixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();
          } else {
              pixels = new int[width * height];
              image.getRGB(0, 0, width, height, pixels, 0, width);
          }
          return getImageData(pixels, format, width, height);
      }