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
DrawTextOnPath(String, SKPath, SKPoint, Boolean, SKPaint) | |
DrawTextOnPath(Byte[], SKPath, SKPoint, SKPaint) |
Obsolete.
Draws text on the canvas following a path. |
DrawTextOnPath(String, SKPath, SKPoint, SKPaint) |
Draws text on the canvas following a path. |
DrawTextOnPath(Byte[], SKPath, Single, Single, SKPaint) |
Obsolete.
Draws text on the canvas following a path. |
DrawTextOnPath(IntPtr, Int32, SKPath, SKPoint, SKPaint) |
Obsolete.
Draws text on the canvas following a path. |
DrawTextOnPath(String, SKPath, Single, Single, SKPaint) |
Draws text on the canvas following a path. |
DrawTextOnPath(IntPtr, Int32, SKPath, Single, Single, SKPaint) |
Obsolete.
Draws text encoded in a UTF-8 buffer on the canvas following a path. |
DrawTextOnPath(String, SKPath, SKPoint, Boolean, SKFont, SKPaint) |
DrawTextOnPath(String, SKPath, SKPoint, Boolean, SKPaint)
DrawTextOnPath(Byte[], SKPath, SKPoint, SKPaint)
Caution
Use DrawTextOnPath(string, SKPath, SKPoint, SKPaint) instead.
Draws text on the canvas following a path.
public void DrawTextOnPath (byte[] text, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, SkiaSharp.SKPaint paint);
[System.Obsolete("Use DrawTextOnPath(string, SKPath, SKPoint, SKPaint) instead.")]
public void DrawTextOnPath (byte[] text, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, SkiaSharp.SKPaint paint);
Parameters
- text
- Byte[]
The text to draw.
- path
- SKPath
The path the text should follow for its baseline.
- offset
- SKPoint
The offset to the path to add to the text's starting position.
- paint
- SKPaint
The paint to use when drawing the text.
- Attributes
Applies to
DrawTextOnPath(String, SKPath, SKPoint, SKPaint)
Draws text on the canvas following a path.
public void DrawTextOnPath (string text, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to draw.
- path
- SKPath
The path the text should follow for its baseline.
- offset
- SKPoint
The offset to the path to add to the text's starting position.
- paint
- SKPaint
The paint to use when drawing the text.
Applies to
DrawTextOnPath(Byte[], SKPath, Single, Single, SKPaint)
Caution
Use DrawTextOnPath(string, SKPath, float, float, SKPaint) instead.
Draws text on the canvas following a path.
public void DrawTextOnPath (byte[] text, SkiaSharp.SKPath path, float hOffset, float vOffset, SkiaSharp.SKPaint paint);
[System.Obsolete("Use DrawTextOnPath(string, SKPath, float, float, SKPaint) instead.")]
public void DrawTextOnPath (byte[] text, SkiaSharp.SKPath path, float hOffset, float vOffset, SkiaSharp.SKPaint paint);
Parameters
- text
- Byte[]
The text to draw.
- path
- SKPath
The path the text should follow for its baseline.
- hOffset
- Single
The distance along the path to add to the text's starting position.
- vOffset
- Single
The distance above (-) or below (+) the path to position the text.
- paint
- SKPaint
The paint to use when drawing the text.
- Attributes
Applies to
DrawTextOnPath(IntPtr, Int32, SKPath, SKPoint, SKPaint)
Caution
Use DrawTextOnPath(string, SKPath, SKPoint, SKPaint) instead.
Draws text on the canvas following a path.
public void DrawTextOnPath (IntPtr buffer, int length, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, SkiaSharp.SKPaint paint);
[System.Obsolete("Use DrawTextOnPath(string, SKPath, SKPoint, SKPaint) instead.")]
public void DrawTextOnPath (IntPtr buffer, int length, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, SkiaSharp.SKPaint paint);
Parameters
- buffer
- IntPtr
The pointer to a region holding UTF-8 encoded text to draw.
- length
- Int32
The number of bytes to read from the buffer.
- path
- SKPath
The path the text should follow for its baseline.
- offset
- SKPoint
The offset to the path to add to the text's starting position.
- paint
- SKPaint
The paint to use when drawing the text.
- Attributes
Applies to
DrawTextOnPath(String, SKPath, Single, Single, SKPaint)
Draws text on the canvas following a path.
public void DrawTextOnPath (string text, SkiaSharp.SKPath path, float hOffset, float vOffset, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to draw.
- path
- SKPath
The path the text should follow for its baseline.
- hOffset
- Single
The distance along the path to add to the text's starting position.
- vOffset
- Single
The distance above (-) or below (+) the path to position the text.
- paint
- SKPaint
The paint to use when drawing the text.
Applies to
DrawTextOnPath(IntPtr, Int32, SKPath, Single, Single, SKPaint)
Caution
Use DrawTextOnPath(string, SKPath, float, float, SKPaint) instead.
Draws text encoded in a UTF-8 buffer on the canvas following a path.
public void DrawTextOnPath (IntPtr buffer, int length, SkiaSharp.SKPath path, float hOffset, float vOffset, SkiaSharp.SKPaint paint);
[System.Obsolete("Use DrawTextOnPath(string, SKPath, float, float, SKPaint) instead.")]
public void DrawTextOnPath (IntPtr buffer, int length, SkiaSharp.SKPath path, float hOffset, float vOffset, SkiaSharp.SKPaint paint);
Parameters
- buffer
- IntPtr
The pointer to a region holding UTF-8 encoded text to draw.
- length
- Int32
The number of bytes to read from the buffer.
- path
- SKPath
The path the text should follow for its baseline.
- hOffset
- Single
The distance along the path to add to the text's starting position.
- vOffset
- Single
The distance above (-) or below (+) the path to position the text.
- paint
- SKPaint
The paint to use when drawing the text.
- Attributes
Applies to
DrawTextOnPath(String, SKPath, SKPoint, Boolean, SKFont, SKPaint)
SkiaSharp
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기