MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    请问如何通过文字生成二维码发送到群内

    开发交流
    2
    5
    354
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • q59541511
      q59541511 last edited by q59541511

      请问如何通过文字生成二维码发送到群内
      求个例子大佬们
      我用的kotlin
      val bitMatrix = MultiFormatWriter().encode(
      "Context",
      BarcodeFormat.QR_CODE,
      150,
      150, null)
      用的ZXing库 创建了 不知道咋发到群里
      Zxing的BitMatrix 咋转 Mrai的ExternalResource?

      1 Reply Last reply Reply Quote 0
      • cssxsh
        cssxsh last edited by

        ?

        你连你用什么编程语言都不说

        q59541511 1 Reply Last reply Reply Quote 0
        • q59541511
          q59541511 @cssxsh last edited by

          @cssxsh
          大哥kotlin

          val bitMatrix = MultiFormatWriter().encode(
          "Context",
          BarcodeFormat.QR_CODE,
          150,
          150, null)

          这个咋发出去

          1 Reply Last reply Reply Quote 0
          • cssxsh
            cssxsh last edited by

            有个工具类叫 MatrixToImageWriter 你需要利用他转成文件再 updateImage(file)

            q59541511 1 Reply Last reply Reply Quote 0
            • q59541511
              q59541511 @cssxsh last edited by

              @cssxsh
              谢谢就是这样解决的~

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact