Upravit

Sdílet prostřednictvím


SKCanvas.DrawTextOnPath Method

Definition

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)

public void DrawTextOnPath (string text, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, bool warpGlyphs, SkiaSharp.SKPaint paint);

Parameters

text
String
path
SKPath
offset
SKPoint
warpGlyphs
Boolean
paint
SKPaint

Applies to

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)

public void DrawTextOnPath (string text, SkiaSharp.SKPath path, SkiaSharp.SKPoint offset, bool warpGlyphs, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);

Parameters

text
String
path
SKPath
offset
SKPoint
warpGlyphs
Boolean
font
SKFont
paint
SKPaint

Applies to