QREncodeParams Class Documentation

classQREncodeParams

Namespace:com::datalogics::PDFL

Detailed Description

Used to control how the QR code is created.

Referenced by

Uses types

Constructor & Destructor Documentation

QREncodeParams

QREncodeParams(Stringtext, doublex, doubley, doublewidth, doubleheight, QRErrorCorrectionLevelerrorLevel, longquietZoneSize, QRColorcodeColor, QRColorbackgroundColor)

Parameters

text: String

The text string to encode in the QR code.

x: double

The X coordinate of the lower-left corner of the QR code on the page, in user space units.

y: double

The Y coordinate of the lower-left corner of the QR code on the page, in user space units.

width: double

The width of the QR code, in user space units.

height: double

The height of the QR code, in user space units.

errorLevel: QRErrorCorrectionLevel

The error correction level for the QR code.

quietZoneSize: long

The size of the quiet zone (margin) around the QR code, in modules.

codeColor: QRColor

The color of the QR code modules (the dark elements).

backgroundColor: QRColor

The color of the background behind the QR code modules.

Create a new QREncodeParams object using the specified values.

Member Function Documentation

DisposeChildren

voidDisposeChildren()

Returns:

void

[static initializer]

static void[static initializer]()

delete

synchronized voiddelete(Booleandisposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized voiddelete()

Returns:

synchronized void

finalize

voidfinalize()

Returns:

void

getBackgroundColor

QRColorgetBackgroundColor()

Returns:

QRColor

Get the color of the background behind the QR code modules.

getCodeColor

QRColorgetCodeColor()

Returns:

QRColor

Get the color of the QR code modules (the dark elements).

getErrorCorrectionLevel

QRErrorCorrectionLevelgetErrorCorrectionLevel()

Returns:

QRErrorCorrectionLevel

Get the error correction level of the QR code.

getHeight

doublegetHeight()

Returns:

double

Get the height of the QR code, in user space units.

getQuietZoneSize

longgetQuietZoneSize()

Returns:

long

Get the quiet zone size (margin around the QR code), in modules.

getTextToEncode

StringgetTextToEncode()

Returns:

String

Get the text string to be encoded in the QR code.

getWidth

doublegetWidth()

Returns:

double

Get the width of the QR code, in user space units.

getX

doublegetX()

Returns:

double

Get the X coordinate of the lower-left corner of the QR code on the page, in user space units.

getY

doublegetY()

Returns:

double

Get the Y coordinate of the lower-left corner of the QR code on the page, in user space units.

setBackgroundColor

voidsetBackgroundColor(QRColorbackgroundColor)

Parameters

backgroundColor: QRColor

Returns:

void

Set the color of the background behind the QR code modules.

setCodeColor

voidsetCodeColor(QRColorcodeColor)

Parameters

codeColor: QRColor

Returns:

void

Set the color of the QR code modules (the dark elements).

setErrorCorrectionLevel

voidsetErrorCorrectionLevel(QRErrorCorrectionLevelerrorLevel)

Parameters

errorLevel: QRErrorCorrectionLevel

Returns:

void

Set the error correction level of the QR code.

setHeight

voidsetHeight(doubleheight)

Parameters

height: double

Returns:

void

Set the height of the QR code, in user space units.

setQuietZoneSize

voidsetQuietZoneSize(longquiteSize)

Parameters

quiteSize: long

Returns:

void

Set the quiet zone size (margin around the QR code), in modules.

setTextToEncode

voidsetTextToEncode(StringtextToEncode)

Parameters

textToEncode: String

Returns:

void

Set the text string to be encoded in the QR code.

setWidth

voidsetWidth(doublewidth)

Parameters

width: double

Returns:

void

Set the width of the QR code, in user space units.

setX

voidsetX(doublex)

Parameters

x: double

Returns:

void

Set the X coordinate of the lower-left corner of the QR code on the page, in user space units.

setY

voidsetY(doubley)

Parameters

y: double

Returns:

void

Set the Y coordinate of the lower-left corner of the QR code on the page, in user space units.