commons

package
v0.3.39 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	/** Aztec 2D barcode format. */
	BarcodeFormat_AZTEC = BarcodeFormat(iota)

	/** CODABAR 1D format. */
	BarcodeFormat_CODABAR

	/** Code 39 1D format. */
	BarcodeFormat_CODE_39

	/** Code 93 1D format. */
	BarcodeFormat_CODE_93

	/** Code 128 1D format. */
	BarcodeFormat_CODE_128

	/** Data Matrix 2D barcode format. */
	BarcodeFormat_DATA_MATRIX

	/** EAN-8 1D format. */
	BarcodeFormat_EAN_8

	/** EAN-13 1D format. */
	BarcodeFormat_EAN_13

	/** ITF (Interleaved Two of Five) 1D format. */
	BarcodeFormat_ITF

	/** MaxiCode 2D barcode format. */
	BarcodeFormat_MAXICODE

	/** PDF417 format. */
	BarcodeFormat_PDF_417

	/** QR Code 2D barcode format. */
	BarcodeFormat_QR_CODE

	/** RSS 14 */
	BarcodeFormat_RSS_14

	/** RSS EXPANDED */
	BarcodeFormat_RSS_EXPANDED

	/** UPC-A 1D format. */
	BarcodeFormat_UPC_A

	/** UPC-E 1D format. */
	BarcodeFormat_UPC_E

	/** UPC/EAN extension format. Not a stand-alone format. */
	BarcodeFormat_UPC_EAN_EXTENSION
)

Variables

This section is empty.

Functions

func Decode

func Decode(reader gozxing.Reader, filename string, options ...interface{}) (string, error)

func Encode

func Encode(writer gozxing.Writer, format gozxing.BarcodeFormat, contents string, options ...interface{}) ([]byte, error)

func GetSize

func GetSize(options ...interface{}) (width, height int)

func ToImage

func ToImage(bm *gozxing.BitMatrix) image.Image

Types

type BarcodeFormat

type BarcodeFormat int

func (BarcodeFormat) String

func (f BarcodeFormat) String() string

type BarcodeFormats

type BarcodeFormats []BarcodeFormat

func (BarcodeFormats) Contains

func (barcodes BarcodeFormats) Contains(c BarcodeFormat) bool

type OptionCircleShapes

type OptionCircleShapes struct{}
type OptionImageLogo struct {
	Filename string
}

type OptionSize

type OptionSize struct {
	Width  int
	Height int
}

Jump to

Keyboard shortcuts

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