編集

次の方法で共有


SKPathMeasure.SetPath Method

Definition

Overloads

SetPath(SKPath)
SetPath(SKPath, Boolean)

Reset the path measure with the specified path.

SetPath(SKPath)

public void SetPath (SkiaSharp.SKPath path);

Parameters

path
SKPath

Applies to

SetPath(SKPath, Boolean)

Reset the path measure with the specified path.

public void SetPath (SkiaSharp.SKPath path, bool forceClosed);

Parameters

path
SKPath

The path to use, or null.

forceClosed
Boolean

Controls whether or not the path is treated as closed.

Remarks

The path must remain valid for the lifetime of the measure object, or until SetPath(SKPath, Boolean) is called with a different path (or null), since the measure object keeps a reference to the path object (does not copy its data).

Applies to