[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.ColorMatrix5x4

Class ColorMatrix5x4

Namespace
GrapeCity.Documents.Imaging
Assembly
GcDocs.Imaging.dll

Represents a 5x4 matrix for altering the RGBA values of a GcBitmap.

public class ColorMatrix5x4 : IEquatable<ColorMatrix5x4>
Inheritance
object
ColorMatrix5x4
Implements
System.IEquatable<T><ColorMatrix5x4>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()

Constructors

ColorMatrix5x4()

Creates an identity ColorMatrix5x4 with M11, M22, M33, M44 components set to 1.

public ColorMatrix5x4()

ColorMatrix5x4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)

Initializes a new instance of the ColorMatrix5x4 struct.

public ColorMatrix5x4(float M11, float M12, float M13, float M14, float M21, float M22, float M23, float M24, float M31, float M32, float M33, float M34, float M41, float M42, float M43, float M44, float M51, float M52, float M53, float M54)

Parameters

M11 float

The value to assign at row 1 column 1 of the ColorMatrix5x4.

M12 float

The value to assign at row 1 column 2 of the ColorMatrix5x4.

M13 float

The value to assign at row 1 column 3 of the ColorMatrix5x4.

M14 float

The value to assign at row 1 column 4 of the ColorMatrix5x4.

M21 float

The value to assign at row 2 column 1 of the ColorMatrix5x4.

M22 float

The value to assign at row 2 column 2 of the ColorMatrix5x4.

M23 float

The value to assign at row 2 column 3 of the ColorMatrix5x4.

M24 float

The value to assign at row 2 column 4 of the ColorMatrix5x4.

M31 float

The value to assign at row 3 column 1 of the ColorMatrix5x4.

M32 float

The value to assign at row 3 column 2 of the ColorMatrix5x4.

M33 float

The value to assign at row 3 column 3 of the ColorMatrix5x4.

M34 float

The value to assign at row 3 column 4 of the ColorMatrix5x4.

M41 float

The value to assign at row 4 column 1 of the ColorMatrix5x4.

M42 float

The value to assign at row 4 column 2 of the ColorMatrix5x4.

M43 float

The value to assign at row 4 column 3 of the ColorMatrix5x4.

M44 float

The value to assign at row 4 column 4 of the ColorMatrix5x4.

M51 float

The value to assign at row 5 column 1 of the ColorMatrix5x4.

M52 float

The value to assign at row 5 column 2 of the ColorMatrix5x4.

M53 float

The value to assign at row 5 column 3 of the ColorMatrix5x4.

M54 float

The value to assign at row 5 column 4 of the ColorMatrix5x4.

ColorMatrix5x4(float)

Initializes a new instance of the ColorMatrix5x4 object.

public ColorMatrix5x4(float value)

Parameters

value float

The value that will be assigned to all components.

ColorMatrix5x4(float[])

Initializes a new instance of the ColorMatrix5x4 struct.

public ColorMatrix5x4(float[] values)

Parameters

values float[]

The values to assign to the components of the ColorMatrix5x4. This must be an array with 20 elements.

Fields

M11

Value at row 1 column 1 of the ColorMatrix5x4.

public float M11

Field Value

float

M12

Value at row 1 column 2 of the ColorMatrix5x4.

public float M12

Field Value

float

M13

Value at row 1 column 3 of the ColorMatrix5x4.

public float M13

Field Value

float

M14

Value at row 1 column 4 of the ColorMatrix5x4.

public float M14

Field Value

float

M21

Value at row 2 column 1 of the ColorMatrix5x4.

public float M21

Field Value

float

M22

Value at row 2 column 2 of the ColorMatrix5x4.

public float M22

Field Value

float

M23

Value at row 2 column 3 of the ColorMatrix5x4.

public float M23

Field Value

float

M24

Value at row 2 column 4 of the ColorMatrix5x4.

public float M24

Field Value

float

M31

Value at row 3 column 1 of the ColorMatrix5x4.

public float M31

Field Value

float

M32

Value at row 3 column 2 of the ColorMatrix5x4.

public float M32

Field Value

float

M33

Value at row 3 column 3 of the ColorMatrix5x4.

public float M33

Field Value

float

M34

Value at row 3 column 4 of the ColorMatrix5x4.

public float M34

Field Value

float

M41

Value at row 4 column 1 of the ColorMatrix5x4.

public float M41

Field Value

float

M42

Value at row 4 column 2 of the ColorMatrix5x4.

public float M42

Field Value

float

M43

Value at row 4 column 3 of the ColorMatrix5x4.

public float M43

Field Value

float

M44

Value at row 4 column 4 of the ColorMatrix5x4.

public float M44

Field Value

float

M51

Value at row 5 column 1 of the ColorMatrix5x4.

public float M51

Field Value

float

M52

Value at row 5 column 2 of the ColorMatrix5x4.

public float M52

Field Value

float

M53

Value at row 5 column 3 of the ColorMatrix5x4.

public float M53

Field Value

float

M54

Value at row 5 column 4 of the ColorMatrix5x4.

public float M54

Field Value

float

Properties

this[int, int]

Gets or sets the component at the specified index.

public float this[int rowIndex, int columnIndex] { get; set; }

Parameters

rowIndex int

The zero-based index of row of the ColorMatrix5x4 to access.

columnIndex int

The zero-based index of column of the ColorMatrix5x4 to access.

Property Value

float

The value of the ColorMatrix5x4 component, depending on the index.

this[int]

Gets or sets the component at the specified index.

public float this[int index] { get; set; }

Parameters

index int

The zero-based index of the component to access.

Property Value

float

The value of the ColorMatrix5x4 component, depending on the index.

Methods

Equals(ColorMatrix5x4, ColorMatrix5x4)

Determines whether two instances of ColorMatrix5x4 are equal.

public static bool Equals(ColorMatrix5x4 left, ColorMatrix5x4 right)

Parameters

left ColorMatrix5x4
right ColorMatrix5x4

Returns

bool

Equals(ColorMatrix5x4)

Determines whether the specified ColorMatrix5x4 is equal to this instance.

public bool Equals(ColorMatrix5x4 other)

Parameters

other ColorMatrix5x4

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object value)

Parameters

value object

Returns

bool

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToArray()

Creates an array containing the elements of the ColorMatrix5x4.

public float[] ToArray()

Returns

float[]

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

Operators

operator ==(ColorMatrix5x4, ColorMatrix5x4)

Tests for equality between two objects.

public static bool operator ==(ColorMatrix5x4 left, ColorMatrix5x4 right)

Parameters

left ColorMatrix5x4

The first value to compare.

right ColorMatrix5x4

The second value to compare.

Returns

bool

true if left has the same value as right; otherwise, false.

operator !=(ColorMatrix5x4, ColorMatrix5x4)

Tests for inequality between two objects.

public static bool operator !=(ColorMatrix5x4 left, ColorMatrix5x4 right)

Parameters

left ColorMatrix5x4

The first value to compare.

right ColorMatrix5x4

The second value to compare.

Returns

bool

true if left has a different value than right; otherwise, false.