---
title: "ImageAttributes.SetColorMatrix"
url: "https://reference.aspose.com/psd/net/aspose.psd/imageattributes/setcolormatrix/"
product: "Aspose.PSD for .NET API Reference"
description: "ImageAttributes method. Sets the coloradjustment matrix for the default category"
---

{{< psd/tize >}}
## SetColorMatrix(ColorMatrix) {#setcolormatrix}

Sets the color-adjustment matrix for the default category.

```csharp
public void SetColorMatrix(ColorMatrix newColorMatrix)
```

| Parameter | Type | Description |
| --- | --- | --- |
| newColorMatrix | ColorMatrix | The color-adjustment matrix. |

### See Also

* class [ColorMatrix](../../colormatrix/)
* class [ImageAttributes](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)

---

## SetColorMatrix(ColorMatrix, ColorMatrixFlag) {#setcolormatrix_1}

Sets the color-adjustment matrix for the default category.

```csharp
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags)
```

| Parameter | Type | Description |
| --- | --- | --- |
| newColorMatrix | ColorMatrix | The color-adjustment matrix. |
| flags | ColorMatrixFlag | An element of [`ColorMatrixFlag`](../../colormatrixflag/) that specifies the type of image and color that will be affected by the color-adjustment matrix. |

### See Also

* class [ColorMatrix](../../colormatrix/)
* enum [ColorMatrixFlag](../../colormatrixflag/)
* class [ImageAttributes](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)

---

## SetColorMatrix(ColorMatrix, ColorMatrixFlag, ColorAdjustType) {#setcolormatrix_2}

Sets the color-adjustment matrix for a specified category.

```csharp
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type)
```

| Parameter | Type | Description |
| --- | --- | --- |
| newColorMatrix | ColorMatrix | The color-adjustment matrix. |
| mode | ColorMatrixFlag | An element of [`ColorMatrixFlag`](../../colormatrixflag/) that specifies the type of image and color that will be affected by the color-adjustment matrix. |
| type | ColorAdjustType | An element of [`ColorAdjustType`](../../coloradjusttype/) that specifies the category for which the color-adjustment matrix is set. |

### See Also

* class [ColorMatrix](../../colormatrix/)
* enum [ColorMatrixFlag](../../colormatrixflag/)
* enum [ColorAdjustType](../../coloradjusttype/)
* class [ImageAttributes](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)


