Class MGL_QRCodeUtils

java.lang.Object
tech.mgl.core.qrcode.MGL_QRCodeUtils

public class MGL_QRCodeUtils extends Object
二维码工具类
Version:
Thursday July 4th, 2013
Author:
MGL.TECH
  • Constructor Details

  • Method Details

    • getPictureType

      public MGL_QRCodeUtils.PictureType getPictureType()
    • getPath

      public String getPath()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getLogo

      public MGL_QRCodeLogo getLogo()
    • getContent

      public String getContent()
    • encodeQRCode2Base64

      public String encodeQRCode2Base64() throws Exception
      直接转为base64
      Returns:
      Throws:
      Exception
    • encodeToOutput

      public boolean encodeToOutput(OutputStream output) throws Exception
      生成二维码(内嵌LOGO)

      @title :

      @param content

      @param imgPath

      @param output

      @param needCompress

      @return

      @throws Exception

      @company :

      @author : www.mgl.tech

      @date : 2016 Apr 9, 2016 10:02:12 AM

      @description :

      @return : boolean

      Throws:
      Exception
    • encode

      public boolean encode() throws Exception
      Throws:
      Exception
    • decode

      public String decode(File file) throws Exception
      解析二维码

      @title : @param file

      @title : @return

      @title : @throws Exception

      @company :

      @author : www.mgl.tech

      @date : 2016 Apr 9, 2016 9:53:47 AM

      @description :

      @return : String

      Throws:
      Exception
    • builder

      public static MGL_QRCodeUtils.Builder builder()