barcode

package
v0.3.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageHeight     = 240
	DefaultMMSWidth = 640
)

Variables

View Source
var (
	FontName = "luxisr.ttf"
	Font     *truetype.Font
)

Functions

func InitializeFont

func InitializeFont() error

initialize font

func MakeBarCode

func MakeBarCode(codeString string, barcodeType string) (image.Image, error)

func MakeBarCodeFile

func MakeBarCodeFile(codeString string, fileName string, barcodeType string) (error, bool)

func MakeBarCodeWithString

func MakeBarCodeWithString(codeString string, barcodeType string, paddingLeft int, paddingBottom int, fontSize float64, dpi float64) (image.Image, error)

func MakeMMSBarCodeFile

func MakeMMSBarCodeFile(codeString string,
	fileName string, defaultImage image.Image,
	settings map[string]interface{}) (error, bool)

640px by 1138px

func MakeQR

func MakeQR(url string, size int) image.Image

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL