testutil

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandBitMatrix

func ExpandBitMatrix(src *gozxing.BitMatrix, factor int) *gozxing.BitMatrix

func MirrorBitMatrix

func MirrorBitMatrix(src *gozxing.BitMatrix) *gozxing.BitMatrix

func NewBinaryBitmapFromBitMatrix

func NewBinaryBitmapFromBitMatrix(matrix *gozxing.BitMatrix) *gozxing.BinaryBitmap

func NewBinaryBitmapFromFile

func NewBinaryBitmapFromFile(filename string) *gozxing.BinaryBitmap

func NewBitArrayFromString

func NewBitArrayFromString(str string) *gozxing.BitArray

func TestFile

func TestFile(t testing.TB, reader gozxing.Reader, file, expectText string,
	expectFormat gozxing.BarcodeFormat, hints map[gozxing.DecodeHintType]interface{},
	metadata map[gozxing.ResultMetadataType]interface{})

Types

type DummyGridSampler

type DummyGridSampler struct{}

func (DummyGridSampler) SampleGrid

func (s DummyGridSampler) SampleGrid(image *gozxing.BitMatrix, dimensionX, dimensionY int,
	p1ToX, p1ToY, p2ToX, p2ToY, p3ToX, p3ToY, p4ToX, p4ToY float64,
	p1FromX, p1FromY, p2FromX, p2FromY, p3FromX, p3FromY, p4FromX, p4FromY float64) (*gozxing.BitMatrix, error)

func (DummyGridSampler) SampleGridWithTransform

func (s DummyGridSampler) SampleGridWithTransform(image *gozxing.BitMatrix,
	dimensionX, dimensionY int, transform *common.PerspectiveTransform) (*gozxing.BitMatrix, error)

Jump to

Keyboard shortcuts

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