package errorcorrectionlevel

import "github.com/edragoev1/pdfjet/v9/src/errorcorrectionlevel"

Package errorcorrectionlevel defines the error correction levels of a QR code.

Index

Types

type ErrorCorrectionLevel

type ErrorCorrectionLevel int

ErrorCorrectionLevel is the error correction level of a QR code. The values are the bits of the level in the format information.

const (
	L ErrorCorrectionLevel = 1 // Recovers about 7% of the data
	M ErrorCorrectionLevel = 0 // Recovers about 15% of the data
	Q ErrorCorrectionLevel = 3 // Recovers about 25% of the data
	H ErrorCorrectionLevel = 2 // Recovers about 30% of the data
)

L, M, Q and H are the error correction levels of a QR code, as ErrorCorrectionLevel.L and so on in the other ports.