Struct RgbMatrix
Matrix for CalRgb color space (spec §8.6.4). The 3×3 transformation matrix for RGB components.
Implements
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct RgbMatrix : IEquatable<RgbMatrix>
Constructors
RgbMatrix(double, double, double, double, double, double, double, double, double)
Initializes the transformation matrix.
Declaration
public RgbMatrix(double m11, double m12, double m13, double m21, double m22, double m23, double m31, double m32, double m33)
Parameters
| Type | Name | Description |
|---|---|---|
| double | m11 | |
| double | m12 | |
| double | m13 | |
| double | m21 | |
| double | m22 | |
| double | m23 | |
| double | m31 | |
| double | m32 | |
| double | m33 |
Properties
Row1
Gets the matrix row 1.
Declaration
public (double X, double Y, double Z) Row1 { get; }
Property Value
| Type | Description |
|---|---|
| (double X, double Y, double Radius) |
Row2
Gets the matrix row 2.
Declaration
public (double X, double Y, double Z) Row2 { get; }
Property Value
| Type | Description |
|---|---|
| (double X, double Y, double Radius) |
Row3
Gets the matrix row 3.
Declaration
public (double X, double Y, double Z) Row3 { get; }
Property Value
| Type | Description |
|---|---|
| (double X, double Y, double Radius) |
Methods
Equals(RgbMatrix)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(RgbMatrix other)
Parameters
| Type | Name | Description |
|---|---|---|
| RgbMatrix | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current instance. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
operator ==(RgbMatrix, RgbMatrix)
Equality operator.
Declaration
public static bool operator ==(RgbMatrix a, RgbMatrix b)
Parameters
| Type | Name | Description |
|---|---|---|
| RgbMatrix | a | |
| RgbMatrix | b |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(RgbMatrix, RgbMatrix)
Inequality operator.
Declaration
public static bool operator !=(RgbMatrix a, RgbMatrix b)
Parameters
| Type | Name | Description |
|---|---|---|
| RgbMatrix | a | |
| RgbMatrix | b |
Returns
| Type | Description |
|---|---|
| bool |