Class MatrixUtil
java.lang.Object
com.itextpdf.text.pdf.qrcode.MatrixUtil
- Since:
- 5.0.2
- Author:
- satorux@google.com (Satoru Takabayashi) - creator, dswitkin@google.com (Daniel Switkin) - ported from C++
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuildMatrix(BitVector dataBits, ErrorCorrectionLevel ecLevel, int version, int maskPattern, ByteMatrix matrix) static intcalculateBCHCode(int value, int poly) static voidclearMatrix(ByteMatrix matrix) static voidembedBasicPatterns(int version, ByteMatrix matrix) static voidembedDataBits(BitVector dataBits, int maskPattern, ByteMatrix matrix) static voidembedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix) static intfindMSBSet(int value) static voidmakeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitVector bits) static voidmakeVersionInfoBits(int version, BitVector bits) static voidmaybeEmbedVersionInfo(int version, ByteMatrix matrix)
-
Method Details
-
clearMatrix
-
buildMatrix
public static void buildMatrix(BitVector dataBits, ErrorCorrectionLevel ecLevel, int version, int maskPattern, ByteMatrix matrix) throws WriterException - Throws:
WriterException
-
embedBasicPatterns
- Throws:
WriterException
-
embedTypeInfo
public static void embedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix) throws WriterException - Throws:
WriterException
-
maybeEmbedVersionInfo
- Throws:
WriterException
-
embedDataBits
public static void embedDataBits(BitVector dataBits, int maskPattern, ByteMatrix matrix) throws WriterException - Throws:
WriterException
-
findMSBSet
public static int findMSBSet(int value) -
calculateBCHCode
public static int calculateBCHCode(int value, int poly) -
makeTypeInfoBits
public static void makeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitVector bits) throws WriterException - Throws:
WriterException
-
makeVersionInfoBits
- Throws:
WriterException
-