• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ColorMatrix

A 5×5 float matrix that defines a linear transformation applied to every pixel's (R, G, B, A, W) tuple during image rendering. Row 4 (W) is the bias / translation row. Column order is R, G, B, A, W.

Inheritance
object
ColorMatrix
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DRIT.Drawing.Imaging
Assembly: DRIT.Drawing.dll
Syntax
public sealed class ColorMatrix

Constructors

ColorMatrix()

Initializes a new ColorMatrix with an identity matrix.

Declaration
public ColorMatrix()

ColorMatrix(float[][])

Initializes a new ColorMatrix from a 2D float array.

Declaration
public ColorMatrix(float[][] newColorMatrix)
Parameters
Type Name Description
float[][] newColorMatrix

The matrix values.

Properties

this[int, int]

Gets or sets the matrix element at the specified row and column.

Declaration
public float this[int row, int col] { get; set; }
Parameters
Type Name Description
int row

The row index (0-4).

int col

The column index (0-4).

Property Value
Type Description
float

The matrix value.

Matrix00

Gets or sets the matrix element at row 0, column 0.

Declaration
public float Matrix00 { get; set; }
Property Value
Type Description
float

Matrix01

Gets or sets the matrix element at row 0, column 1.

Declaration
public float Matrix01 { get; set; }
Property Value
Type Description
float

Matrix02

Gets or sets the matrix element at row 0, column 2.

Declaration
public float Matrix02 { get; set; }
Property Value
Type Description
float

Matrix03

Gets or sets the matrix element at row 0, column 3.

Declaration
public float Matrix03 { get; set; }
Property Value
Type Description
float

Matrix04

Gets or sets the matrix element at row 0, column 4.

Declaration
public float Matrix04 { get; set; }
Property Value
Type Description
float

Matrix10

Gets or sets the matrix element at row 1, column 0.

Declaration
public float Matrix10 { get; set; }
Property Value
Type Description
float

Matrix11

Gets or sets the matrix element at row 1, column 1.

Declaration
public float Matrix11 { get; set; }
Property Value
Type Description
float

Matrix12

Gets or sets the matrix element at row 1, column 2.

Declaration
public float Matrix12 { get; set; }
Property Value
Type Description
float

Matrix13

Gets or sets the matrix element at row 1, column 3.

Declaration
public float Matrix13 { get; set; }
Property Value
Type Description
float

Matrix14

Gets or sets the matrix element at row 1, column 4.

Declaration
public float Matrix14 { get; set; }
Property Value
Type Description
float

Matrix20

Gets or sets the matrix element at row 2, column 0.

Declaration
public float Matrix20 { get; set; }
Property Value
Type Description
float

Matrix21

Gets or sets the matrix element at row 2, column 1.

Declaration
public float Matrix21 { get; set; }
Property Value
Type Description
float

Matrix22

Gets or sets the matrix element at row 2, column 2.

Declaration
public float Matrix22 { get; set; }
Property Value
Type Description
float

Matrix23

Gets or sets the matrix element at row 2, column 3.

Declaration
public float Matrix23 { get; set; }
Property Value
Type Description
float

Matrix24

Gets or sets the matrix element at row 2, column 4.

Declaration
public float Matrix24 { get; set; }
Property Value
Type Description
float

Matrix30

Gets or sets the matrix element at row 3, column 0.

Declaration
public float Matrix30 { get; set; }
Property Value
Type Description
float

Matrix31

Gets or sets the matrix element at row 3, column 1.

Declaration
public float Matrix31 { get; set; }
Property Value
Type Description
float

Matrix32

Gets or sets the matrix element at row 3, column 2.

Declaration
public float Matrix32 { get; set; }
Property Value
Type Description
float

Matrix33

Gets or sets the matrix element at row 3, column 3.

Declaration
public float Matrix33 { get; set; }
Property Value
Type Description
float

Matrix34

Gets or sets the matrix element at row 3, column 4.

Declaration
public float Matrix34 { get; set; }
Property Value
Type Description
float

Matrix40

Gets or sets the matrix element at row 4, column 0.

Declaration
public float Matrix40 { get; set; }
Property Value
Type Description
float

Matrix41

Gets or sets the matrix element at row 4, column 1.

Declaration
public float Matrix41 { get; set; }
Property Value
Type Description
float

Matrix42

Gets or sets the matrix element at row 4, column 2.

Declaration
public float Matrix42 { get; set; }
Property Value
Type Description
float

Matrix43

Gets or sets the matrix element at row 4, column 3.

Declaration
public float Matrix43 { get; set; }
Property Value
Type Description
float

Matrix44

Gets or sets the matrix element at row 4, column 4.

Declaration
public float Matrix44 { get; set; }
Property Value
Type Description
float
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX