SKPathEffect.CreateTrim Method

Definition

Overloads

CreateTrim(Single, Single)

Creates a path effect that trims the path.

CreateTrim(Single, Single, SKTrimPathEffectMode)

Creates a path effect that trims the path.

CreateTrim(Single, Single)

Creates a path effect that trims the path.

public static SkiaSharp.SKPathEffect CreateTrim (float start, float stop);

Parameters

start
Single

The start path offset between [0, 1] - inclusive.

stop
Single

The stop path offset between [0, 1] - inclusive.

Returns

Returns the new SKPathEffect, or null on error.

Remarks

If either the start or stop values are outside the [0, 1] range (inclusive), they will be pinned to the nearest legal value.

Applies to

CreateTrim(Single, Single, SKTrimPathEffectMode)

Creates a path effect that trims the path.

public static SkiaSharp.SKPathEffect CreateTrim (float start, float stop, SkiaSharp.SKTrimPathEffectMode mode);

Parameters

start
Single

The start path offset between [0, 1] - inclusive.

stop
Single

The stop path offset between [0, 1] - inclusive.

mode
SKTrimPathEffectMode

The trim mode to use.

Returns

Returns the new SKPathEffect, or null on error.

Remarks

If either the start or stop values are outside the [0, 1] range (inclusive), they will be pinned to the nearest legal value.

Applies to