docs: public static BufferedImage generate(String content, BarcodeFormat format, QrConfig config) {
  		final BitMatrix bitMatrix = encode(content, format, config);
  		final BufferedImage image = toImage(bitMatrix, config.foreColor, config.backColor);
  		final Image logoImg = config.img;
  		if (null != logoImg && BarcodeFormat.QR_CODE == format) {
  			// 只有二维码可以贴图
  			final int qrWidth = image.getWidth();
  			final int qrHeight = image.getHeight();
  			int width;
  			int height;
  			// 按照最短的边做比例缩放
  			if (qrWidth < qrHeight) {
  				width = qrWidth / config.ratio;
  				height = logoImg.getHeight(null) * width / logoImg.getWidth(null);
  			} else {
  				height = qrHeight / config.ratio;
  				width = logoImg.getWidth(null) * height / logoImg.getHeight(null);
  			}
  
  			Img.from(image).pressImage(//
  					Img.from(logoImg).round(0.3).getImg(), // 圆角
  					new Rectangle(width, height), //
  					1//
  			);
  		}
  		return image;
  	}