SKPathEffect.CreateTrim Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour