# DeformationResistedBarcodeImageUnit Class

The `DeformationResistedBarcodeImageUnit` class represents a unit that contains deformation resisted barcode image data. It inherits from the `IntermediateResultUnit` class.

## Definition

*Namespace:* Dynamsoft.DBR.intermediate_results


*Inheritance:* [IntermediateResultUnit](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/core/intermediate-results/intermediate-result-unit.md) -> DeformationResistedBarcodeImageUnit

```csharp
class DeformationResistedBarcodeImageUnit : IntermediateResultUnit
```

## Methods

| Method                            | Description |
|-----------------------------------|-------------|
| [`GetDeformationResistedBarcode`](#getdeformationresistedbarcode) | Gets the deformation resisted barcode object.|
| [`SetDeformationResistedBarcode`](#setdeformationresistedbarcode) | Sets the deformation resisted barcode object.|

### Inherited Methods

Checkout inherited methods from [IntermediateResultUnit](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/core/intermediate-results/intermediate-result-unit.md) for more details.

### GetDeformationResistedBarcode

Gets the deformation resisted barcode object.

```csharp
DeformationResistedBarcode GetDeformationResistedBarcode()
```

**Return value**

Returns an instance of `DeformationResistedBarcode`.

**See Also**

[DeformationResistedBarcode](https://www.dynamsoft.com/barcode-reader/docs/server/programming/dotnet/api-reference/deformation-resisted-barcode.md)

### SetDeformationResistedBarcode

Sets the deformation resisted barcode object.

```csharp
int SetDeformationResistedBarcode(DeformationResistedBarcode barcode, double[] matrixToOriginalImage = null)
```

**Parameters**

`[in] barcode` The deformation resisted barcode object.

`matrixToOriginalImage` The matrix to original image.

**Return value**

Returns 0 if successful, otherwise returns a negative value.

**See Also**

[DeformationResistedBarcode](https://www.dynamsoft.com/barcode-reader/docs/server/programming/dotnet/api-reference/deformation-resisted-barcode.md)
