# QREncodeParams Class

> Used to control how the QR code is created.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2a
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/class/QREncodeParams
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/llms.txt

```java
class QREncodeParams
```

**Namespace:** `com::datalogics::PDFL`

## Description

Used to control how the QR code is created.

**Referenced by:** [`Page`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/class/Page.md)

**Uses types:** [`QRColor`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/class/QRColor.md)

## Constructors

### QREncodeParams

```java
com.datalogics.PDFL.QREncodeParams.QREncodeParams(String text, double x, double y, double width, double height, QRErrorCorrectionLevel errorLevel, long quietZoneSize, QRColor codeColor, QRColor backgroundColor)
```

*constructor*

**Parameters**

- `text` (`String`)
- `x` (`double`)
- `y` (`double`)
- `width` (`double`)
- `height` (`double`)
- `errorLevel` (`QRErrorCorrectionLevel`)
- `quietZoneSize` (`long`)
- `codeColor` ([`QRColor`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/class/QRColor.md))
- `backgroundColor` ([`QRColor`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/class/QRColor.md))

Create a new QREncodeParams object using the specified values.

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.QREncodeParams.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.QREncodeParams.delete()
```

**Returns:** `synchronized void`

### finalize

```java
void com.datalogics.PDFL.QREncodeParams.finalize()
```

*protected*

**Returns:** `void`

### getBackgroundColor

```java
QRColor com.datalogics.PDFL.QREncodeParams.getBackgroundColor()
```

**Returns:** [`QRColor`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/class/QRColor.md)

Get the Color of the Background.

### getCodeColor

```java
QRColor com.datalogics.PDFL.QREncodeParams.getCodeColor()
```

**Returns:** [`QRColor`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/class/QRColor.md)

Get the Color of the Code.

### getErrorCorrectionLevel

```java
QRErrorCorrectionLevel com.datalogics.PDFL.QREncodeParams.getErrorCorrectionLevel()
```

**Returns:** `QRErrorCorrectionLevel`

Get the Error Correction Level of the code.

### getHeight

```java
double com.datalogics.PDFL.QREncodeParams.getHeight()
```

**Returns:** `double`

Get the Height of the code.

### getQuietZoneSize

```java
long com.datalogics.PDFL.QREncodeParams.getQuietZoneSize()
```

**Returns:** `long`

Get the Quiet Zone Size of the code.

### getTextToEncode

```java
String com.datalogics.PDFL.QREncodeParams.getTextToEncode()
```

**Returns:** `String`

Get the Text to be encoded.

### getWidth

```java
double com.datalogics.PDFL.QREncodeParams.getWidth()
```

**Returns:** `double`

Get the Width of the code.

### getX

```java
double com.datalogics.PDFL.QREncodeParams.getX()
```

**Returns:** `double`

Get the X location of the code.

### getY

```java
double com.datalogics.PDFL.QREncodeParams.getY()
```

**Returns:** `double`

Get the Y location of the code.

### setBackgroundColor

```java
void com.datalogics.PDFL.QREncodeParams.setBackgroundColor(QRColor backgroundColor)
```

**Parameters**

- `backgroundColor` ([`QRColor`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/class/QRColor.md))

**Returns:** `void`

Set the Color of the Background.

### setCodeColor

```java
void com.datalogics.PDFL.QREncodeParams.setCodeColor(QRColor codeColor)
```

**Parameters**

- `codeColor` ([`QRColor`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2a/class/QRColor.md))

**Returns:** `void`

Set the Color of the Code.

### setErrorCorrectionLevel

```java
void com.datalogics.PDFL.QREncodeParams.setErrorCorrectionLevel(QRErrorCorrectionLevel errorLevel)
```

**Parameters**

- `errorLevel` (`QRErrorCorrectionLevel`)

**Returns:** `void`

Set the Error Correction Level of the code.

### setHeight

```java
void com.datalogics.PDFL.QREncodeParams.setHeight(double height)
```

**Parameters**

- `height` (`double`)

**Returns:** `void`

Set the Height of the code.

### setQuietZoneSize

```java
void com.datalogics.PDFL.QREncodeParams.setQuietZoneSize(long quiteSize)
```

**Parameters**

- `quiteSize` (`long`)

**Returns:** `void`

Set the Quiet Zone Size of the code.

### setTextToEncode

```java
void com.datalogics.PDFL.QREncodeParams.setTextToEncode(String textToEncode)
```

**Parameters**

- `textToEncode` (`String`)

**Returns:** `void`

Set the Text to be encoded.

### setWidth

```java
void com.datalogics.PDFL.QREncodeParams.setWidth(double width)
```

**Parameters**

- `width` (`double`)

**Returns:** `void`

Set the Width of the code.

### setX

```java
void com.datalogics.PDFL.QREncodeParams.setX(double x)
```

**Parameters**

- `x` (`double`)

**Returns:** `void`

Set the X location of the code.

### setY

```java
void com.datalogics.PDFL.QREncodeParams.setY(double y)
```

**Parameters**

- `y` (`double`)

**Returns:** `void`

Set the Y location of the code.
