Skip to main content
All docs
V25.1
  • 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.1.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