Struct DWriteMatrix
The DWRITE_MATRIX structure specifies the graphics transform to be applied
to rendered glyphs.
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteMatrix : IEquatable<DWriteMatrix>
Constructors
|
Edit this page
View Source
DWriteMatrix(float, float, float, float, float, float)
Declaration
public DWriteMatrix(float m11, float m12, float m21, float m22, float dx, float dy)
Parameters
Properties
|
Edit this page
View Source
DX
Gets or sets the horizontal shift (always orthogonal regardless of rotation)
Declaration
public float DX { get; set; }
Property Value
|
Edit this page
View Source
DY
Gets or sets the vertical shift (always orthogonal regardless of rotation)
Declaration
public float DY { get; set; }
Property Value
|
Edit this page
View Source
M11
Gets or sets the horizontal scaling / cosine of rotation
Declaration
public float M11 { get; set; }
Property Value
|
Edit this page
View Source
M12
Gets or sets the vertical shear / sine of rotation
Declaration
public float M12 { get; set; }
Property Value
|
Edit this page
View Source
M21
Gets or sets the horizontal shear / negative sine of rotation
Declaration
public float M21 { get; set; }
Property Value
|
Edit this page
View Source
M22
Gets or sets the vertical scaling / cosine of rotation
Declaration
public float M22 { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(DWriteMatrix)
Declaration
public readonly bool Equals(DWriteMatrix other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static DWriteMatrix NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DWriteMatrix>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteMatrix> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in DWriteMatrix)
Declaration
public static void NativeWriteTo(nint buffer, in DWriteMatrix obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DWriteMatrix>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteMatrix> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(DWriteMatrix, DWriteMatrix)
Declaration
public static bool operator ==(DWriteMatrix left, DWriteMatrix right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DWriteMatrix, DWriteMatrix)
Declaration
public static bool operator !=(DWriteMatrix left, DWriteMatrix right)
Parameters
Returns
Implements