iText 8.0.5 API
iText.Barcodes.Qrcode.QRCodeWriter Class Reference

This object renders a QR Code as a ByteMatrix 2D array of greyscale values. More...

Public Member Functions

ByteMatrix  Encode (String contents, int width, int height)
  Encode a string into a QR code with dimensions width x height, using error-correction level L and the smallest version for which he contents fit into the QR-code? More...
 
ByteMatrix  Encode (String contents, int width, int height, IDictionary< EncodeHintType, Object > hints)
  Encode a string into a QR code with dimensions width x height. More...
 

Detailed Description

This object renders a QR Code as a ByteMatrix 2D array of greyscale values.

Member Function Documentation

◆ Encode() [1/2]

ByteMatrix iText.Barcodes.Qrcode.QRCodeWriter.Encode ( String  contents,
int  width,
int  height 
)
inline

Encode a string into a QR code with dimensions width x height, using error-correction level L and the smallest version for which he contents fit into the QR-code?

Parameters
contents String to encode into the QR code
width width of the QR-code
height height of the QR-code
Returns
2D Greyscale map containing the visual representation of the QR-code, stored as a Bytematrix

◆ Encode() [2/2]

ByteMatrix iText.Barcodes.Qrcode.QRCodeWriter.Encode ( String  contents,
int  width,
int  height,
IDictionary< EncodeHintType, Object >  hints 
)
inline

Encode a string into a QR code with dimensions width x height.

Encode a string into a QR code with dimensions width x height. Hints contains suggestions for error-correction level and version. The default error-correction level is L, the default version is the smallest version for which the contents will fit into the QR-code.

Parameters
contents String to encode into the QR code
width width of the QR-code
height height of the QR-code
hints Map containing suggestions for error-correction level and version
Returns
2D Greyscale map containing the visual representation of the QR-code, stored as a Bytematrix