SKCanvas.DrawTextOnPath 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
| Name | Description |
|---|---|
| DrawTextOnPath(String, SKPath, SKPoint, SKTextAlign, SKFont, SKPaint) |
Draws text along a path with alignment using the specified font. |
| DrawTextOnPath(String, SKPath, SKPoint, SKFont, SKPaint) |
Obsolete.
Draws text along a path using the specified font. |
| DrawTextOnPath(String, SKPath, SKPoint, Boolean, SKFont, SKPaint) |
Obsolete.
Draws text along a path with optional glyph warping using the specified font. |
| DrawTextOnPath(String, SKPath, Single, Single, SKFont, SKPaint) |
Obsolete.
Draws text along a path with horizontal and vertical offsets. |
| DrawTextOnPath(String, SKPath, SKPoint, Boolean, SKTextAlign, SKFont, SKPaint) |
Draws text along a path with alignment and optional glyph warping. |
| DrawTextOnPath(String, SKPath, Single, Single, SKTextAlign, SKFont, SKPaint) |
Draws text along a path with offsets and alignment. |
DrawTextOnPath(String, SKPath, SKPoint, SKTextAlign, SKFont, SKPaint)
Draws text along a path with alignment using the specified font.
public void DrawTextOnPath(string text, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, SkiaSharp.SKTextAlign textAlign, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to draw.
- path
- SKPath
The path along which to draw the text.
- offset
- SKPoint
The offset from the path origin.
- textAlign
- SKTextAlign
The text alignment along the path.
- font
- SKFont
The font used to render the text.
- paint
- SKPaint
The paint used to draw the text.
Applies to
DrawTextOnPath(String, SKPath, SKPoint, SKFont, SKPaint)
Caution
Use the overload with SKTextAlign parameter instead.
Draws text along a path using the specified font.
[System.Obsolete("Use the overload with SKTextAlign parameter instead.")]
public void DrawTextOnPath(string text, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to draw.
- path
- SKPath
The path along which to draw the text.
- offset
- SKPoint
The offset from the path origin.
- font
- SKFont
The font used to render the text.
- paint
- SKPaint
The paint used to draw the text.
- Attributes
Applies to
DrawTextOnPath(String, SKPath, SKPoint, Boolean, SKFont, SKPaint)
Caution
Use the overload with SKTextAlign parameter instead.
Draws text along a path with optional glyph warping using the specified font.
[System.Obsolete("Use the overload with SKTextAlign parameter instead.")]
public void DrawTextOnPath(string text, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, bool warpGlyphs, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to draw.
- path
- SKPath
The path along which to draw the text.
- offset
- SKPoint
The offset from the path origin.
- warpGlyphs
- Boolean
Whether to warp the glyphs to follow the path curvature.
- font
- SKFont
The font used to render the text.
- paint
- SKPaint
The paint used to draw the text.
- Attributes
Applies to
DrawTextOnPath(String, SKPath, Single, Single, SKFont, SKPaint)
Caution
Use the overload with SKTextAlign parameter instead.
Draws text along a path with horizontal and vertical offsets.
[System.Obsolete("Use the overload with SKTextAlign parameter instead.")]
public void DrawTextOnPath(string text, SkiaSharp.SKPath path, float hOffset, float vOffset, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to draw.
- path
- SKPath
The path along which to draw the text.
- hOffset
- Single
The horizontal offset along the path.
- vOffset
- Single
The vertical offset from the path.
- font
- SKFont
The font used to render the text.
- paint
- SKPaint
The paint used to draw the text.
- Attributes
Applies to
DrawTextOnPath(String, SKPath, SKPoint, Boolean, SKTextAlign, SKFont, SKPaint)
Draws text along a path with alignment and optional glyph warping.
public void DrawTextOnPath(string text, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, bool warpGlyphs, SkiaSharp.SKTextAlign textAlign, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to draw.
- path
- SKPath
The path along which to draw the text.
- offset
- SKPoint
The offset from the path origin.
- warpGlyphs
- Boolean
Whether to warp the glyphs to follow the path curvature.
- textAlign
- SKTextAlign
The text alignment along the path.
- font
- SKFont
The font used to render the text.
- paint
- SKPaint
The paint used to draw the text.
Applies to
DrawTextOnPath(String, SKPath, Single, Single, SKTextAlign, SKFont, SKPaint)
Draws text along a path with offsets and alignment.
public void DrawTextOnPath(string text, SkiaSharp.SKPath path, float hOffset, float vOffset, SkiaSharp.SKTextAlign textAlign, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to draw.
- path
- SKPath
The path along which to draw the text.
- hOffset
- Single
The horizontal offset along the path.
- vOffset
- Single
The vertical offset from the path.
- textAlign
- SKTextAlign
The text alignment along the path.
- font
- SKFont
The font used to render the text.
- paint
- SKPaint
The paint used to draw the text.