SKCanvas.DrawTextOnPath Method

Definition

Overloads

DrawTextOnPath(IntPtr, Int32, SKPath, Single, Single, SKPaint)

Draws text encoded in a UTF-8 buffer on the canvas following a path.

DrawTextOnPath(String, SKPath, Single, Single, SKPaint)

Draws text on the canvas following a path.

DrawTextOnPath(IntPtr, Int32, SKPath, SKPoint, SKPaint)

Draws text on the canvas following a path.

DrawTextOnPath(Byte[], SKPath, Single, Single, SKPaint)

Draws text on the canvas following a path.

DrawTextOnPath(Byte[], SKPath, SKPoint, SKPaint)

Draws text on the canvas following a path.

DrawTextOnPath(String, SKPath, SKPoint, SKPaint)

Draws text on the canvas following a path.

DrawTextOnPath(IntPtr, Int32, SKPath, Single, Single, SKPaint)

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);

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.

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.

DrawTextOnPath(IntPtr, Int32, SKPath, SKPoint, SKPaint)

Draws text on the canvas following a path.

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.

DrawTextOnPath(Byte[], SKPath, Single, Single, SKPaint)

Draws text on the canvas following a path.

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.

DrawTextOnPath(Byte[], SKPath, SKPoint, SKPaint)

Draws text on the canvas following a path.

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.

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