Skip to main content
All docs
V23.2

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.v23.2.dll

NuGet Package: DevExpress.Drawing

Declaration

public static DXMatrix CreateTranslateMatrix(
    float offsetX,
    float offsetY
)

Parameters

Name Type Description
offsetX Single

The x-coordinate of the translation.

offsetY Single

The y-coordinate of the translation.

Returns

Type Description
DXMatrix

The resulting transformation matrix.

See Also