# DeformationResistedBarcode Class

The `DeformationResistedBarcode` class represents a deformation resisted barcode.

## Definition

*Namespace:* Dynamsoft.DBR.intermediate_results


```csharp
class DeformationResistedBarcode
```

## Methods

| Method                            | Description |
|-----------------------------------|-------------|
| [`DeformationResistedBarcode`](#DeformationResistedBarcode-constructor)           | Constructs a `DeformationResistedBarcode` object. |
| [`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 Constructor

Constructs a `DeformationResistedBarcode` object with the specified parameters.

```csharp
DeformationResistedBarcode();
DeformationResistedBarcode(ImageData img, Quadrilateral location, EnumBarcodeFormat format);
```

**Parameters**

`img` the deformation resisted barcode image.

`location` The location of the deformation resisted barcode.

`format` The format of the deformation resisted barcode.

### GetFormat

Gets the format of the deformation resisted barcode.

```csharp
EnumBarcodeFormat GetFormat()
```

**Return value**

Returns the format of the deformation resisted barcode.

**See Also**

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

### SetFormat

Sets the format of the deformation resisted barcode.

```csharp
void SetFormat(EnumBarcodeFormat format)
```

**Parameters**

`format` The format of the deformation resisted barcode.

**See Also**

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

### GetImageData

Gets the deformation resisted barcode image.

```csharp
ImageData GetImageData()
```

**Return value**

Returns the deformation resisted barcode image.

**See Also**

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

### SetImageData

Sets the deformation resisted barcode image.

```csharp
void SetImageData(ImageData img)
```

**Parameters**

`img` the deformation resisted barcode image.

**See Also**

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

### GetLocation

Gets the location of the deformation resisted barcode.

```csharp
Quadrilateral GetLocation()
```

**Return value**

Returns the location of the deformation resisted barcode.

**See Also**

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

### SetLocation

Sets the location of the deformation resisted barcode.

```csharp
void SetLocation(Quadrilateral loc)
```

**Parameters**

`loc` The location of the deformation resisted barcode. 

**See Also**

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

