code: public static BitMatrix encode(String content, BarcodeFormat format, QrConfig config) {
  		final MultiFormatWriter multiFormatWriter = new MultiFormatWriter();
  		if (null == config) {
  			// 默认配置
  			config = new QrConfig();
  		}
  		BitMatrix bitMatrix;
  		try {
  			bitMatrix = multiFormatWriter.encode(content, format, config.width, config.height, config.toHints());
  		} catch (WriterException e) {
  			throw new QrCodeException(e);
  		}
  
  		return bitMatrix;
  	}
docs: 将文本内容编码为条形码或二维码
  
  @param content 文本内容
  @param format 格式枚举
  @param config 二维码配置，包括长、宽、边距、颜色等
  @return {@link BitMatrix}
  @since 4.1.2