Table of Contents

Class DoubleMatrix

Namespace
ImageMagick
Assembly
Magick.NET-Q16-AnyCPU.dll

Encapsulates a matrix of doubles.

public abstract class DoubleMatrix
Inheritance
DoubleMatrix
Derived
Inherited Members

Constructors

DoubleMatrix(int, double[]?)

Initializes a new instance of the DoubleMatrix class.

protected DoubleMatrix(int order, double[]? values)

Parameters

order int

The order.

values double[]

The values to initialize the matrix with.

Properties

this[int, int]

Get or set the value at the specified x/y position.

public double this[int x, int y] { get; set; }

Parameters

x int

The x position.

y int

The y position.

Property Value

double

Order

Gets the order of the matrix.

public int Order { get; }

Property Value

int

Methods

GetValue(int, int)

Gets the value at the specified x/y position.

public double GetValue(int x, int y)

Parameters

x int

The x position.

y int

The y position.

Returns

double

The value at the specified x/y position.

SetColumn(int, params double[])

Set the column at the specified x position.

public void SetColumn(int x, params double[] values)

Parameters

x int

The x position.

values double[]

The values.

SetRow(int, params double[])

Set the row at the specified y position.

public void SetRow(int y, params double[] values)

Parameters

y int

The y position.

values double[]

The values.

SetValue(int, int, double)

Set the value at the specified x/y position.

public void SetValue(int x, int y, double value)

Parameters

x int

The x position.

y int

The y position.

value double

The value.

ToArray()

Returns a string that represents the current DoubleMatrix.

public double[] ToArray()

Returns

double[]

The double array.