# DeformationResistedBarcode Class

The `DeformationResistedBarcode` class represents a deformation resisted barcode.

## Definition

*Package:* com.dynamsoft.dbr.intermediate_results

```java
public class DeformationResistedBarcode
```

## Methods

| Method                            | Description |
|-----------------------------------|-------------|
| [`DeformationResistedBarcode`](#deformationresistedbarcode) | Initializes a new instance of the `DeformationResistedBarcode` class. |
| [`getFormat`](#getformat)           | Gets the format of the deformation resisted barcode. |
| [`setFormat`](#setformat)           | Sets the format of the deformation resisted barcode. |
| [`getImageData`](#getimagedata)           | Gets the deformation resisted barcode image. |
| [`setImageData`](#setimagedata)           | Sets the deformation resisted barcode image. |
| [`getLocation`](#getlocation)           | Gets the location of the deformation resisted barcode.|
| [`setLocation`](#setlocation)           | Sets the location of the deformation resisted barcode.|


### DeformationResistedBarcode

Initializes a new instance of the `DeformationResistedBarcode` class.

```java
public DeformationResistedBarcode()
public DeformationResistedBarcode(ImageData img, Quadrilateral location, long format)
```

**Parameters**

`img` The barcode image data.

`location` The location of the deformation resisted barcode.

`format` The format of the deformation resisted barcode.

**See Also**

[ImageData](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/basic-classes/image-data.md)

[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/basic-classes/quadrilateral.md)

[EnumBarcodeFormat](https://www.dynamsoft.com/barcode-reader/docs/server/programming/java/api-reference/enum-barcode-format.md)

### getFormat

Gets the format of the deformation resisted barcode.

```java
public @EnumBarcodeFormat long getFormat()
```

**Return value**

Returns the format of the deformation resisted barcode.

**See Also**

[EnumBarcodeFormat](https://www.dynamsoft.com/barcode-reader/docs/server/programming/java/api-reference/enum-barcode-format.md)

### setFormat

Sets the format of the deformation resisted barcode.

```java
public void setFormat(long format)
```

**Parameters**

`format` The format of the deformation resisted barcode.

**See Also**

[EnumBarcodeFormat](https://www.dynamsoft.com/barcode-reader/docs/server/programming/java/api-reference/enum-barcode-format.md)

### getImageData

Gets the deformation resisted barcode image.

```java
public ImageData getImageData()
```

**Return value**

Returns the deformation resisted barcode image.

**See Also**

[ImageData](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/basic-classes/image-data.md)

### setImageData

Sets the deformation resisted barcode image.

```java
public void setImageData(ImageData imgData)
```

**Parameters**

`imgData` The deformation resisted barcode image.

**See Also**

[ImageData](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/basic-classes/image-data.md)

### getLocation

Gets the location of the deformation resisted barcode.

```java
public Quadrilateral getLocation()
```

**Return value**

Returns the location of the deformation resisted barcode.

**See Also**

[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/basic-classes/quadrilateral.md)

### setLocation

Sets the location of the deformation resisted barcode.

```java
public void setLocation(Quadrilateral location)
```

**Parameters**

`location` The location of the deformation resisted barcode. 

**See Also**

[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/basic-classes/quadrilateral.md)

