Table of Contents

Class Version

Namespace
ZXing.QrCode.Internal
Assembly
zxing.dll

See ISO 18004:2006 Annex D

public sealed class Version
Inheritance
Version
Inherited Members

Properties

AlignmentPatternCenters

Gets the alignment pattern centers.

public int[] AlignmentPatternCenters { get; }

Property Value

int[]

DimensionForVersion

Gets the dimension for version.

public int DimensionForVersion { get; }

Property Value

int

TotalCodewords

Gets the total codewords.

public int TotalCodewords { get; }

Property Value

int

VersionNumber

Gets the version number.

public int VersionNumber { get; }

Property Value

int

Methods

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.

getECBlocksForLevel(ErrorCorrectionLevel)

Gets the EC blocks for level.

public Version.ECBlocks getECBlocksForLevel(ErrorCorrectionLevel ecLevel)

Parameters

ecLevel ErrorCorrectionLevel

The ec level.

Returns

Version.ECBlocks

getProvisionalVersionForDimension(int)

Deduces version information purely from QR Code dimensions.

public static Version getProvisionalVersionForDimension(int dimension)

Parameters

dimension int

dimension in modules

Returns

Version

Version for a QR Code of that dimension or null

getVersionForNumber(int)

Gets the version for number.

public static Version getVersionForNumber(int versionNumber)

Parameters

versionNumber int

The version number.

Returns

Version