Documentation
¶
Index ¶
- Variables
- func AlignNames() []string
- func Barcode(data string, sym Symbology, o BarcodeOptions) (*image.Gray, error)
- func FontNames() []string
- func Gray(img image.Image) *image.Gray
- func LevelNames() []string
- func Pad(g *image.Gray, left, top, right, bottom int) *image.Gray
- func QR(data string, level Level, maxSide int) (*image.Gray, error)
- func SymbologyNames() []string
- func Text(s string, o TextOptions) (*image.Gray, error)
- func White(w, h int) *image.Gray
- type Align
- type BarcodeOptions
- type Font
- type Level
- type Symbology
- type TextOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooMuchData = errors.New("too much data to fit the label width")
View Source
var ErrTooWide = errors.New("text is too wide")
Functions ¶
func AlignNames ¶
func AlignNames() []string
func LevelNames ¶
func LevelNames() []string
func QR ¶
2 modules of quiet zone like the python driver, ISO/IEC 18004 asks for 4 (the paper margin makes up the rest)
func SymbologyNames ¶
func SymbologyNames() []string
Types ¶
type BarcodeOptions ¶
type Font ¶
type Font uint8
type Level ¶
type Level uint8
QR error correction, ISO/IEC 18004 recovers ~7, 15, 25 and 30% of the symbol
func ParseLevel ¶
Click to show internal directories.
Click to hide internal directories.