Back to Devexpress

DXMatrix.CreateTranslateMatrix(Single, Single) Method

corelibraries-devexpress-dot-drawing-dot-dxmatrix-dot-createtranslatematrix-x28-system-dot-single-system-dot-single-x29.md

latest1.5 KB
Original Source

DXMatrix.CreateTranslateMatrix(Single, Single) Method

Creates a new matrix based on the current matrix and translates the coordinate system origin to the specified offset.

Namespace : DevExpress.Drawing

Assembly : DevExpress.Drawing.v25.2.dll

NuGet Package : DevExpress.Drawing

Declaration

csharp
public static DXMatrix CreateTranslateMatrix(
    float offsetX,
    float offsetY
)
vb
Public Shared Function CreateTranslateMatrix(
    offsetX As Single,
    offsetY As Single
) As DXMatrix

Parameters

NameTypeDescription
offsetXSingle

The x-coordinate of the translation.

| | offsetY | Single |

The y-coordinate of the translation.

|

Returns

TypeDescription
DXMatrix

The resulting transformation matrix.

|

See Also

DXMatrix Class

DXMatrix Members

DevExpress.Drawing Namespace