datamatrix

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataMatrixWriter

func NewDataMatrixWriter() gozxing.Writer

Types

type DataMatrixReader

type DataMatrixReader struct {
	// contains filtered or unexported fields
}

func NewDataMatrixReader

func NewDataMatrixReader() *DataMatrixReader

func (*DataMatrixReader) Decode

func (r *DataMatrixReader) Decode(image *gozxing.BinaryBitmap, hints map[gozxing.DecodeHintType]interface{}) (*gozxing.Result, error)

Decode Locates and decodes a Data Matrix code in an image.

@return a String representing the content encoded by the Data Matrix code @throws NotFoundException if a Data Matrix code cannot be found @throws FormatException if a Data Matrix code cannot be decoded @throws ChecksumException if error correction fails

func (*DataMatrixReader) DecodeWithoutHints

func (r *DataMatrixReader) DecodeWithoutHints(image *gozxing.BinaryBitmap) (*gozxing.Result, error)

func (*DataMatrixReader) Reset

func (r *DataMatrixReader) Reset()

type DataMatrixWriter

type DataMatrixWriter struct{}

DataMatrixWriter This object renders a Data Matrix code as a BitMatrix 2D array of greyscale values.

func (*DataMatrixWriter) Encode

func (this *DataMatrixWriter) Encode(contents string, format gozxing.BarcodeFormat,
	width, height int, hints map[gozxing.EncodeHintType]interface{}) (*gozxing.BitMatrix, error)

func (*DataMatrixWriter) EncodeWithoutHint

func (this *DataMatrixWriter) EncodeWithoutHint(
	contents string, format gozxing.BarcodeFormat, width, height int) (*gozxing.BitMatrix, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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