Documentation ¶
Index ¶
Constants ¶
const ( ErrorCorrectLevelL = 1 ErrorCorrectLevelM = 0 ErrorCorrectLevelQ = 3 ErrorCorrectLevelH = 2 )
QRCode error correction levels.
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.
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 ¶
QRCode used to create 2D QR Code barcodes. Please see Example_20. @author Kazuhiko Arase
func NewQRCode ¶
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 ¶
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) SetLocation ¶
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 ¶
SetModuleLength sets the module length of this barcode. The default value is 2.0f @param moduleLength the specified module length.
func (*QRCode) SetPosition ¶
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.