編輯

共用方式為


SKMatrix.MakeTranslation(Single, Single) Method

Definition

Caution

Use CreateTranslation(float, float) instead.

Creates a translation matrix.

public static SkiaSharp.SKMatrix MakeTranslation (float dx, float dy);
[System.Obsolete("Use CreateTranslation(float, float) instead.")]
public static SkiaSharp.SKMatrix MakeTranslation (float dx, float dy);

Parameters

dx
Single

The translation/offset in the x-direction.

dy
Single

The translation/offset in the y-direction.

Returns

Returns the new matrix.

Attributes

Applies to