{{< psd/tize >}}
## ColorMatrix class

Defines a 5 x 5 matrix that contains the coordinates for the RGBA space. Several methods of the [`ImageAttributes`](../imageattributes/) class adjust image colors by using a color matrix. This class cannot be inherited.

```csharp
public sealed class ColorMatrix
```

## Constructors

| Name | Description |
| --- | --- |
| [ColorMatrix](colormatrix/#constructor)() | Initializes a new instance of the `ColorMatrix` class. |
| [ColorMatrix](colormatrix/#constructor_1)(float[][]) | Initializes a new instance of the `ColorMatrix` class using the elements in the specified matrix *newColorMatrix*. |

## Properties

| Name | Description |
| --- | --- |
| [Item](../../aspose.psd/colormatrix/item/) { get; set; } | Gets or sets the element at the specified row and column in the `ColorMatrix`. |
| [Matrix00](../../aspose.psd/colormatrix/matrix00/) { get; set; } | Gets or sets the element at the 0 (zero) row and 0 column of this `ColorMatrix`. |
| [Matrix01](../../aspose.psd/colormatrix/matrix01/) { get; set; } | Gets or sets the element at the 0 (zero) row and first column of this `ColorMatrix`. |
| [Matrix02](../../aspose.psd/colormatrix/matrix02/) { get; set; } | Gets or sets the element at the 0 (zero) row and second column of this `ColorMatrix`. |
| [Matrix03](../../aspose.psd/colormatrix/matrix03/) { get; set; } | Gets or sets the element at the 0 (zero) row and third column of this `ColorMatrix`. |
| [Matrix04](../../aspose.psd/colormatrix/matrix04/) { get; set; } | Gets or sets the element at the 0 (zero) row and fourth column of this `ColorMatrix`. |
| [Matrix10](../../aspose.psd/colormatrix/matrix10/) { get; set; } | Gets or sets the element at the first row and 0 (zero) column of this `ColorMatrix`. |
| [Matrix11](../../aspose.psd/colormatrix/matrix11/) { get; set; } | Gets or sets the element at the first row and first column of this `ColorMatrix`. |
| [Matrix12](../../aspose.psd/colormatrix/matrix12/) { get; set; } | Gets or sets the element at the first row and second column of this `ColorMatrix`. |
| [Matrix13](../../aspose.psd/colormatrix/matrix13/) { get; set; } | Gets or sets the element at the first row and third column of this `ColorMatrix`. |
| [Matrix14](../../aspose.psd/colormatrix/matrix14/) { get; set; } | Gets or sets the element at the first row and fourth column of this `ColorMatrix`. |
| [Matrix20](../../aspose.psd/colormatrix/matrix20/) { get; set; } | Gets or sets the element at the second row and 0 (zero) column of this `ColorMatrix`. |
| [Matrix21](../../aspose.psd/colormatrix/matrix21/) { get; set; } | Gets or sets the element at the second row and first column of this `ColorMatrix`. |
| [Matrix22](../../aspose.psd/colormatrix/matrix22/) { get; set; } | Gets or sets the element at the second row and second column of this `ColorMatrix`. |
| [Matrix23](../../aspose.psd/colormatrix/matrix23/) { get; set; } | Gets or sets the element at the second row and third column of this `ColorMatrix`. |
| [Matrix24](../../aspose.psd/colormatrix/matrix24/) { get; set; } | Gets or sets the element at the second row and fourth column of this `ColorMatrix`. |
| [Matrix30](../../aspose.psd/colormatrix/matrix30/) { get; set; } | Gets or sets the element at the third row and 0 (zero) column of this `ColorMatrix`. |
| [Matrix31](../../aspose.psd/colormatrix/matrix31/) { get; set; } | Gets or sets the element at the third row and first column of this `ColorMatrix`. |
| [Matrix32](../../aspose.psd/colormatrix/matrix32/) { get; set; } | Gets or sets the element at the third row and second column of this `ColorMatrix`. |
| [Matrix33](../../aspose.psd/colormatrix/matrix33/) { get; set; } | Gets or sets the element at the third row and third column of this `ColorMatrix`. |
| [Matrix34](../../aspose.psd/colormatrix/matrix34/) { get; set; } | Gets or sets the element at the third row and fourth column of this `ColorMatrix`. |
| [Matrix40](../../aspose.psd/colormatrix/matrix40/) { get; set; } | Gets or sets the element at the fourth row and 0 (zero) column of this `ColorMatrix`. |
| [Matrix41](../../aspose.psd/colormatrix/matrix41/) { get; set; } | Gets or sets the element at the fourth row and first column of this `ColorMatrix`. |
| [Matrix42](../../aspose.psd/colormatrix/matrix42/) { get; set; } | Gets or sets the element at the fourth row and second column of this `ColorMatrix`. |
| [Matrix43](../../aspose.psd/colormatrix/matrix43/) { get; set; } | Gets or sets the element at the fourth row and third column of this `ColorMatrix`. |
| [Matrix44](../../aspose.psd/colormatrix/matrix44/) { get; set; } | Gets or sets the element at the fourth row and fourth column of this `ColorMatrix`. |

## Methods

| Name | Description |
| --- | --- |
| [GetMatrix](../../aspose.psd/colormatrix/getmatrix/)() | Gets the matrix values. |

## Fields

| Name | Description |
| --- | --- |
| const [MatrixDimensionElementsCount](../../aspose.psd/colormatrix/matrixdimensionelementscount/) | The number of elements in matrix dimension. |
| const [MatrixDimensionsCount](../../aspose.psd/colormatrix/matrixdimensionscount/) | The number of matrix dimensions. |
| const [MatrixTotalElementsCount](../../aspose.psd/colormatrix/matrixtotalelementscount/) | The total number of elements in the matrix. |

### See Also

* namespace [Aspose.PSD](../../aspose.psd/)
* assembly [Aspose.PSD](../../)


