[]
Represents a 5x4 matrix for altering the RGBA values of a GcBitmap.
public class ColorMatrix5x4 : IEquatable<ColorMatrix5x4>
Creates an identity ColorMatrix5x4 with M11, M22, M33, M44 components set to 1.
public ColorMatrix5x4()
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)
M11
floatThe value to assign at row 1 column 1 of the ColorMatrix5x4.
M12
floatThe value to assign at row 1 column 2 of the ColorMatrix5x4.
M13
floatThe value to assign at row 1 column 3 of the ColorMatrix5x4.
M14
floatThe value to assign at row 1 column 4 of the ColorMatrix5x4.
M21
floatThe value to assign at row 2 column 1 of the ColorMatrix5x4.
M22
floatThe value to assign at row 2 column 2 of the ColorMatrix5x4.
M23
floatThe value to assign at row 2 column 3 of the ColorMatrix5x4.
M24
floatThe value to assign at row 2 column 4 of the ColorMatrix5x4.
M31
floatThe value to assign at row 3 column 1 of the ColorMatrix5x4.
M32
floatThe value to assign at row 3 column 2 of the ColorMatrix5x4.
M33
floatThe value to assign at row 3 column 3 of the ColorMatrix5x4.
M34
floatThe value to assign at row 3 column 4 of the ColorMatrix5x4.
M41
floatThe value to assign at row 4 column 1 of the ColorMatrix5x4.
M42
floatThe value to assign at row 4 column 2 of the ColorMatrix5x4.
M43
floatThe value to assign at row 4 column 3 of the ColorMatrix5x4.
M44
floatThe value to assign at row 4 column 4 of the ColorMatrix5x4.
M51
floatThe value to assign at row 5 column 1 of the ColorMatrix5x4.
M52
floatThe value to assign at row 5 column 2 of the ColorMatrix5x4.
M53
floatThe value to assign at row 5 column 3 of the ColorMatrix5x4.
M54
floatThe value to assign at row 5 column 4 of the ColorMatrix5x4.
Initializes a new instance of the ColorMatrix5x4 object.
public ColorMatrix5x4(float value)
value
floatThe value that will be assigned to all components.
Initializes a new instance of the ColorMatrix5x4 struct.
public ColorMatrix5x4(float[] values)
values
float[]The values to assign to the components of the ColorMatrix5x4. This must be an array with 20 elements.
Value at row 1 column 1 of the ColorMatrix5x4.
public float M11
Value at row 1 column 2 of the ColorMatrix5x4.
public float M12
Value at row 1 column 3 of the ColorMatrix5x4.
public float M13
Value at row 1 column 4 of the ColorMatrix5x4.
public float M14
Value at row 2 column 1 of the ColorMatrix5x4.
public float M21
Value at row 2 column 2 of the ColorMatrix5x4.
public float M22
Value at row 2 column 3 of the ColorMatrix5x4.
public float M23
Value at row 2 column 4 of the ColorMatrix5x4.
public float M24
Value at row 3 column 1 of the ColorMatrix5x4.
public float M31
Value at row 3 column 2 of the ColorMatrix5x4.
public float M32
Value at row 3 column 3 of the ColorMatrix5x4.
public float M33
Value at row 3 column 4 of the ColorMatrix5x4.
public float M34
Value at row 4 column 1 of the ColorMatrix5x4.
public float M41
Value at row 4 column 2 of the ColorMatrix5x4.
public float M42
Value at row 4 column 3 of the ColorMatrix5x4.
public float M43
Value at row 4 column 4 of the ColorMatrix5x4.
public float M44
Value at row 5 column 1 of the ColorMatrix5x4.
public float M51
Value at row 5 column 2 of the ColorMatrix5x4.
public float M52
Value at row 5 column 3 of the ColorMatrix5x4.
public float M53
Value at row 5 column 4 of the ColorMatrix5x4.
public float M54
Gets or sets the component at the specified index.
public float this[int rowIndex, int columnIndex] { get; set; }
rowIndex
intThe zero-based index of row of the ColorMatrix5x4 to access.
columnIndex
intThe zero-based index of column of the ColorMatrix5x4 to access.
The value of the ColorMatrix5x4 component, depending on the index.
Gets or sets the component at the specified index.
public float this[int index] { get; set; }
index
intThe zero-based index of the component to access.
The value of the ColorMatrix5x4 component, depending on the index.
Determines whether two instances of ColorMatrix5x4 are equal.
public static bool Equals(ColorMatrix5x4 left, ColorMatrix5x4 right)
left
ColorMatrix5x4right
ColorMatrix5x4Determines whether the specified ColorMatrix5x4 is equal to this instance.
public bool Equals(ColorMatrix5x4 other)
other
ColorMatrix5x4Determines whether the specified object is equal to this instance.
public override bool Equals(object value)
value
objectReturns a hash code for this instance.
public override int GetHashCode()
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Creates an array containing the elements of the ColorMatrix5x4.
public float[] ToArray()
Returns a string that represents the current object.
public override string ToString()
Tests for equality between two objects.
public static bool operator ==(ColorMatrix5x4 left, ColorMatrix5x4 right)
left
ColorMatrix5x4The first value to compare.
right
ColorMatrix5x4The second value to compare.
true
if left
has the same value as right
; otherwise, false
.
Tests for inequality between two objects.
public static bool operator !=(ColorMatrix5x4 left, ColorMatrix5x4 right)
left
ColorMatrix5x4The first value to compare.
right
ColorMatrix5x4The second value to compare.
true
if left
has a different value than right
; otherwise, false
.