dproject

package
v0.0.0-...-2660072 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorCorrectLevelL = 1
	ErrorCorrectLevelM = 0
	ErrorCorrectLevelQ = 3
	ErrorCorrectLevelH = 2
)

QRCode error correction levels.

View Source
const (
	PATTERN000 = iota
	PATTERN001
	PATTERN010
	PATTERN011
	PATTERN100
	PATTERN101
	PATTERN110
	PATTERN111
)

QRCode patterns

Variables

This section is empty.

Functions

This section is empty.

Types

type BitBuffer

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

BitBuffer describes the BitBuffer structure.

func NewBitBuffer

func NewBitBuffer() *BitBuffer

NewBitBuffer constructs BitBuffer object.

type Polynomial

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

Polynomial describes polynomial structure.

func NewPolynomial

func NewPolynomial(num []int, shift int) *Polynomial

NewPolynomial constructs polynomial object.

type QRCode

type QRCode struct {
	PAD0 int
	PAD1 int
	// contains filtered or unexported fields
}

QRCode used to create 2D QR Code barcodes. Please see Example_20. @author Kazuhiko Arase

func NewQRCode

func NewQRCode(str string, errorCorrectLevel int) *QRCode

NewQRCode is used to create 2D QR Code barcodes. @param str the string to encode. @param errorCorrectLevel the desired error correction level.

func (*QRCode) DrawOn

func (qrcode *QRCode) DrawOn(page *pdfjet.Page) []float32

DrawOn draws this barcode on the specified page. @param page the specified page. @return x and y coordinates of the bottom right corner of this component.

func (*QRCode) SetColor

func (qrcode *QRCode) SetColor(color int32)

SetColor sets the color of the barcode.

func (*QRCode) SetLocation

func (qrcode *QRCode) SetLocation(x, y float32)

SetLocation sets the location where this barcode will be drawn on the page. @param x the x coordinate of the top left corner of the barcode. @param y the y coordinate of the top left corner of the barcode.

func (*QRCode) SetModuleLength

func (qrcode *QRCode) SetModuleLength(moduleLength float32)

SetModuleLength sets the module length of this barcode. The default value is 2.0f @param moduleLength the specified module length.

func (*QRCode) SetPosition

func (qrcode *QRCode) SetPosition(x, y float32)

SetPosition sets the position where this barcode will be drawn on the page. @param x the x coordinate of the top left corner of the barcode. @param y the y coordinate of the top left corner of the barcode.

type QRMath

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

QRMath describes the QRMath structure.

func NewQRMath

func NewQRMath() *QRMath

NewQRMath constructs QRMath object.

type RSBlock

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

RSBlock describes the RSBlock object.

func NewRSBlock

func NewRSBlock(totalCount, dataCount int) *RSBlock

NewRSBlock constructs RSBlock objects.

Jump to

Keyboard shortcuts

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