## ColorMatrix class

Defines a 5 x 5 matrix that contains the coordinates for the RGBA space. Several methods of the 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](../../system.drawing.imaging/colormatrix/item/) { get; set; } | Gets or sets the element at the specified row and column in the ColorMatrix. |
| [Matrix00](../../system.drawing.imaging/colormatrix/matrix00/) { get; set; } | Gets or sets the element at the 0 (zero) row and 0 column of this ColorMatrix. |
| [Matrix01](../../system.drawing.imaging/colormatrix/matrix01/) { get; set; } | Gets or sets the element at the 0 (zero) row and first column of this ColorMatrix. |
| [Matrix02](../../system.drawing.imaging/colormatrix/matrix02/) { get; set; } | Gets or sets the element at the 0 (zero) row and second column of this ColorMatrix. |
| [Matrix03](../../system.drawing.imaging/colormatrix/matrix03/) { get; set; } | Gets or sets the element at the 0 (zero) row and third column of this ColorMatrix. |
| [Matrix04](../../system.drawing.imaging/colormatrix/matrix04/) { get; set; } | Gets or sets the element at the 0 (zero) row and fourth column of this ColorMatrix. |
| [Matrix10](../../system.drawing.imaging/colormatrix/matrix10/) { get; set; } | Gets or sets the element at the first row and 0 (zero) column of this ColorMatrix. |
| [Matrix11](../../system.drawing.imaging/colormatrix/matrix11/) { get; set; } | Gets or sets the element at the first row and first column of this ColorMatrix. |
| [Matrix12](../../system.drawing.imaging/colormatrix/matrix12/) { get; set; } | Gets or sets the element at the first row and second column of this ColorMatrix. |
| [Matrix13](../../system.drawing.imaging/colormatrix/matrix13/) { get; set; } | Gets or sets the element at the first row and third column of this ColorMatrix. |
| [Matrix14](../../system.drawing.imaging/colormatrix/matrix14/) { get; set; } | Gets or sets the element at the first row and fourth column of this ColorMatrix. |
| [Matrix20](../../system.drawing.imaging/colormatrix/matrix20/) { get; set; } | Gets or sets the element at the second row and 0 (zero) column of this ColorMatrix. |
| [Matrix21](../../system.drawing.imaging/colormatrix/matrix21/) { get; set; } | Gets or sets the element at the second row and first column of this ColorMatrix. |
| [Matrix22](../../system.drawing.imaging/colormatrix/matrix22/) { get; set; } | Gets or sets the element at the second row and second column of this ColorMatrix. |
| [Matrix23](../../system.drawing.imaging/colormatrix/matrix23/) { get; set; } | Gets or sets the element at the second row and third column of this ColorMatrix. |
| [Matrix24](../../system.drawing.imaging/colormatrix/matrix24/) { get; set; } | Gets or sets the element at the second row and fourth column of this ColorMatrix. |
| [Matrix30](../../system.drawing.imaging/colormatrix/matrix30/) { get; set; } | Gets or sets the element at the third row and 0 (zero) column of this ColorMatrix. |
| [Matrix31](../../system.drawing.imaging/colormatrix/matrix31/) { get; set; } | Gets or sets the element at the third row and first column of this ColorMatrix. |
| [Matrix32](../../system.drawing.imaging/colormatrix/matrix32/) { get; set; } | Gets or sets the element at the third row and second column of this ColorMatrix. |
| [Matrix33](../../system.drawing.imaging/colormatrix/matrix33/) { get; set; } | Gets or sets the element at the third row and third column of this ColorMatrix. |
| [Matrix34](../../system.drawing.imaging/colormatrix/matrix34/) { get; set; } | Gets or sets the element at the third row and fourth column of this ColorMatrix. |
| [Matrix40](../../system.drawing.imaging/colormatrix/matrix40/) { get; set; } | Gets or sets the element at the fourth row and 0 (zero) column of this ColorMatrix. |
| [Matrix41](../../system.drawing.imaging/colormatrix/matrix41/) { get; set; } | Gets or sets the element at the fourth row and first column of this T:.ColorMatrix. |
| [Matrix42](../../system.drawing.imaging/colormatrix/matrix42/) { get; set; } | Gets or sets the element at the fourth row and second column of this ColorMatrix. |
| [Matrix43](../../system.drawing.imaging/colormatrix/matrix43/) { get; set; } | Gets or sets the element at the fourth row and third column of this ColorMatrix. |
| [Matrix44](../../system.drawing.imaging/colormatrix/matrix44/) { get; set; } | Gets or sets the element at the fourth row and fourth column of this ColorMatrix. |

### See Also

* namespace [System.Drawing.Imaging](../../system.drawing.imaging/)
* assembly [Aspose.Drawing](../../)


