Versions in this module Expand all Collapse all v0 v0.0.2 Jul 8, 2020 Changes in this version + const High + const Highest + const Low + const Medium + type Avatar struct + Height int + Src string + Width int + type BackgroundImage struct + Height int + Src string + Width int + X int + Y int + type ForegroundImage struct + Src string + type Generate func(image.Image) (image.Image, error) + type IQrCode interface + DisableBorder func(bool) + Image func(size int) (image.Image, error) + PNG func(size int) ([]byte, error) + SetAvatar func(*Avatar) + SetBackgroundColor func(color.Color) + SetBackgroundImage func(*BackgroundImage) + SetForegroundColor func(color.Color) + SetForegroundImage func(string) + Write func(size int, out io.Writer) error + WriteFile func(size int, filename string) error + type QrCode struct + Avatar *Avatar + BackgroundImage *BackgroundImage + CreateAvatar Generate + CreateBackgroundImage Generate + CreateForegroundImage Generate + ForegroundImage *ForegroundImage + func New(content string, level qrcode.RecoveryLevel) (*QrCode, error) + func (q *QrCode) DefaultCreateAvatar(img image.Image) (image.Image, error) + func (q *QrCode) DefaultCreateBackgroundImage(img image.Image) (image.Image, error) + func (q *QrCode) DefaultCreateForegroundImage(img image.Image) (image.Image, error) + func (q *QrCode) DisableBorder(disable bool) + func (q *QrCode) Image(size int) (image.Image, error) + func (q *QrCode) PNG(size int) ([]byte, error) + func (q *QrCode) SetAvatar(avatar *Avatar) + func (q *QrCode) SetBackgroundColor(color color.Color) + func (q *QrCode) SetBackgroundImage(img *BackgroundImage) + func (q *QrCode) SetCreateAvatar(create Generate) + func (q *QrCode) SetCreateBackgroundImage(create Generate) + func (q *QrCode) SetCreateForegroundImage(create Generate) + func (q *QrCode) SetForegroundColor(color color.Color) + func (q *QrCode) SetForegroundImage(src string) + func (q *QrCode) Write(size int, out io.Writer) error + func (q *QrCode) WriteFile(size int, filename string) error