code: public final BufferedImage createCompatibleDestImage(BufferedImage src,
                                                         ColorModel destCM) {
      if (destCM == null) {
        destCM = src.getColorModel();
      }
      return new BufferedImage(destCM,
          destCM.createCompatibleWritableRaster(
              src.getWidth(), src.getHeight()),
          destCM.isAlphaPremultiplied(), null);
    }
docs: {@inheritDoc}