Documentation ¶
Index ¶
- func AddLogo(logoPath string, qrCodeImg image.Image, width uint, height uint) (*image.RGBA, error)
- func FilePathExists(filePath string) bool
- func GenerateDefaultQrCode(content string, logoPath string, savePath string)
- func GenerateQrCode(content string, borderDisable bool, logoPath string, savePath string, ...)
- func ImageType(iconPath string) (image.Image, error)
- func MkdirAll(filePath string) bool
- func ResizeLogo(logoPath string, width uint, height uint) (image.Image, error)
- func SaveImage(savePath string, logoImg image.Image) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLogo ¶
AddLogo 重置图片大小 logoPath logo 图片地址 qrCodeImg 二维码图片 width 重置 logo 图片宽度 height 重置 logo 图片高度
func FilePathExists ¶
FilePathExists Judge whether the given path file / folder exists.
func GenerateDefaultQrCode ¶
GenerateDefaultQrCode 生成一个默认大小的中间带 logo 的二维码
func GenerateQrCode ¶
func GenerateQrCode(content string, borderDisable bool, logoPath string, savePath string, qrCodeSize int, logoWidth uint, logoHeight uint)
GenerateQrCode 生成一个中间带icon的二维码 content 二维码资源 logoPath logo 图片地址 savePath 图片的保存地址 qrCodeSize 二维码图片大小 logoWidth 重置 logo 图片宽度 logoHeight 重置 logo 图片高度
func ResizeLogo ¶
ResizeLogo 修改图片的大小 logoPath logo 图片地址 width 重置 logo 图片宽度 height 重置 logo 图片高度
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.