# ScaledColourImageUnit

The `ScaledColourImageUnit` class represents an intermediate result unit that contains scaled color image. It is derived from the `IntermediateResultUnit` class.

## Definition

*Namespace:* Dynamsoft.Core.intermediate_results


```csharp
class ScaledColourImageUnit : IntermediateResultUnit
```

## Methods

| Method               | Description |
|----------------------|-------------|
| [`GetImageData`](#getimagedata) | Gets the image data of the unit.|
| [`SetImageData`](#setimagedata) | Sets the image data of the unit. |

### 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.

### GetImageData

Gets the image data of the unit.

```csharp
ImageData GetImageData()
```

**Return value**

Returns the `ImageData` object that contains the image data of the unit.

**See Also**

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

### SetImageData

Sets the image data of the unit.

```csharp
int SetImageData(ImageData imgData)
```

**Parameters**

`[in] imgData` The image data to set.

**Return value**

Returns 0 if succeeds, nonzero otherwise.

**See Also**

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