Struct DWriteMatrix
The DWRITE_MATRIX structure specifies the graphics transform to be applied to rendered glyphs.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteMatrix : IEquatable<DWriteMatrix>
Properties
| Edit this page View SourceDX
Gets or sets the horizontal shift (always orthogonal regardless of rotation)
Declaration
public float DX { get; set; }
Property Value
Type | Description |
---|---|
float |
DY
Gets or sets the vertical shift (always orthogonal regardless of rotation)
Declaration
public float DY { get; set; }
Property Value
Type | Description |
---|---|
float |
M11
Gets or sets the horizontal scaling / cosine of rotation
Declaration
public float M11 { get; set; }
Property Value
Type | Description |
---|---|
float |
M12
Gets or sets the vertical shear / sine of rotation
Declaration
public float M12 { get; set; }
Property Value
Type | Description |
---|---|
float |
M21
Gets or sets the horizontal shear / negative sine of rotation
Declaration
public float M21 { get; set; }
Property Value
Type | Description |
---|---|
float |
M22
Gets or sets the vertical scaling / cosine of rotation
Declaration
public float M22 { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(DWriteMatrix)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DWriteMatrix other)
Parameters
Type | Name | Description |
---|---|---|
DWriteMatrix | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
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
| Edit this page View Sourceoperator ==(DWriteMatrix, DWriteMatrix)
Compares two DWriteMatrix objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DWriteMatrix left, DWriteMatrix right)
Parameters
Type | Name | Description |
---|---|---|
DWriteMatrix | left | The left DWriteMatrix to compare. |
DWriteMatrix | right | The right DWriteMatrix to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DWriteMatrix, DWriteMatrix)
Compares two DWriteMatrix objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DWriteMatrix left, DWriteMatrix right)
Parameters
Type | Name | Description |
---|---|---|
DWriteMatrix | left | The left DWriteMatrix to compare. |
DWriteMatrix | right | The right DWriteMatrix to compare. |
Returns
Type | Description |
---|---|
bool |