com.itextpdf.text.pdf.qrcode
Class MatrixUtil
java.lang.Object
com.itextpdf.text.pdf.qrcode.MatrixUtil
public final class MatrixUtil
- extends Object
- Since:
- 5.0.2
- Author:
- satorux@google.com (Satoru Takabayashi) - creator, dswitkin@google.com (Daniel Switkin) - ported from C++
Method Summary |
static void |
buildMatrix(BitVector dataBits,
ErrorCorrectionLevel ecLevel,
int version,
int maskPattern,
ByteMatrix matrix)
|
static int |
calculateBCHCode(int value,
int poly)
|
static void |
clearMatrix(ByteMatrix matrix)
|
static void |
embedBasicPatterns(int version,
ByteMatrix matrix)
|
static void |
embedDataBits(BitVector dataBits,
int maskPattern,
ByteMatrix matrix)
|
static void |
embedTypeInfo(ErrorCorrectionLevel ecLevel,
int maskPattern,
ByteMatrix matrix)
|
static int |
findMSBSet(int value)
|
static void |
makeTypeInfoBits(ErrorCorrectionLevel ecLevel,
int maskPattern,
BitVector bits)
|
static void |
makeVersionInfoBits(int version,
BitVector bits)
|
static void |
maybeEmbedVersionInfo(int version,
ByteMatrix matrix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clearMatrix
public static void clearMatrix(ByteMatrix matrix)
buildMatrix
public static void buildMatrix(BitVector dataBits,
ErrorCorrectionLevel ecLevel,
int version,
int maskPattern,
ByteMatrix matrix)
throws WriterException
- Throws:
WriterException
embedBasicPatterns
public static void embedBasicPatterns(int version,
ByteMatrix matrix)
throws WriterException
- Throws:
WriterException
embedTypeInfo
public static void embedTypeInfo(ErrorCorrectionLevel ecLevel,
int maskPattern,
ByteMatrix matrix)
throws WriterException
- Throws:
WriterException
maybeEmbedVersionInfo
public static void maybeEmbedVersionInfo(int version,
ByteMatrix matrix)
throws WriterException
- 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
public static void makeVersionInfoBits(int version,
BitVector bits)
throws WriterException
- Throws:
WriterException
Copyright © 2013. All Rights Reserved.