# OfficeRasterColorMatrix

An immutable normalized-channel affine color transform with four output rows and five input columns.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`b87f83792369` with working tree changes

**Source**

[OfficeRasterFilters.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/b87f837923696ed23fb7f1b4758e48121ac42a16/OfficeIMO.Core/Raster/OfficeRasterFilters.cs#L17)

**Modifiers**

sealed

An immutable normalized-channel affine color transform with four output rows and five input columns.

## Inheritance

- object
- OfficeRasterColorMatrix

## Remarks

Each row multiplies normalized R, G, B, A and a constant one. Results are clamped to zero through one.

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [OfficeRasterColorMatrix.Identity](/api/core/officeimo-drawing-officerastercolormatrix/#property-identity)

### Accepted by parameters 1

- Method [OfficeRasterFilters.ColorMatrix](/api/core/officeimo-drawing-officerasterfilters/#method-colormatrix-officeimo-drawing-officerasterimage-officeimo-drawing-officerastercolormatrix-threading-cancellationtoken) parameter `matrix`

Filter members 

Show inherited

## Constructors

`public OfficeRasterColorMatrix(params double[] coefficients)` [#](#constructor-ctor-double)

[OfficeRasterFilters.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/b87f837923696ed23fb7f1b4758e48121ac42a16/OfficeIMO.Core/Raster/OfficeRasterFilters.cs#L17)

Creates a matrix by copying exactly twenty finite row-major coefficients.

Parameters

**coefficients double[] required**

## Methods

`public double GetCoefficient(int row, int column)` [#](#method-getcoefficient-int32-int32)

[OfficeRasterFilters.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/b87f837923696ed23fb7f1b4758e48121ac42a16/OfficeIMO.Core/Raster/OfficeRasterFilters.cs#L34)

Gets one coefficient by output-channel row and input-channel/bias column.

Parameters

**row int required**

**column int required**

Returns

`double`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public static OfficeRasterColorMatrix Identity { get; }` [#](#property-identity)

[OfficeRasterFilters.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/b87f837923696ed23fb7f1b4758e48121ac42a16/OfficeIMO.Core/Raster/OfficeRasterFilters.cs#L29)

Gets the identity color transform.

<!-- PowerForge markdown artifact sha256:C2F3E60CCD97533CE181CB7ACB5982D32045D2B8E80594A36A12E52DE728A9A0 -->
