Struct RgbCalibration
Calibration values for CalRgb color space (spec §8.6.4).
Implements
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct RgbCalibration : IEquatable<RgbCalibration>
Constructors
RgbCalibration(double, double, double)
Initializes calibration values.
Declaration
public RgbCalibration(double x, double y, double z)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | |
| double | y | |
| double | z |
Properties
X
Gets the X coordinate.
Declaration
public double X { get; }
Property Value
| Type | Description |
|---|---|
| double |
Y
Gets the Y coordinate.
Declaration
public double Y { get; }
Property Value
| Type | Description |
|---|---|
| double |
Z
Gets the Z coordinate.
Declaration
public double Z { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
Equals(RgbCalibration)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(RgbCalibration other)
Parameters
| Type | Name | Description |
|---|---|---|
| RgbCalibration | 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 ==(RgbCalibration, RgbCalibration)
Equality operator.
Declaration
public static bool operator ==(RgbCalibration a, RgbCalibration b)
Parameters
| Type | Name | Description |
|---|---|---|
| RgbCalibration | a | |
| RgbCalibration | b |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(RgbCalibration, RgbCalibration)
Inequality operator.
Declaration
public static bool operator !=(RgbCalibration a, RgbCalibration b)
Parameters
| Type | Name | Description |
|---|---|---|
| RgbCalibration | a | |
| RgbCalibration | b |
Returns
| Type | Description |
|---|---|
| bool |