편집

다음을 통해 공유


SKPaint.GetTextIntercepts Method

Definition

Overloads

GetTextIntercepts(IntPtr, Int32, Single, Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetTextIntercepts(IntPtr, IntPtr, Single, Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetTextIntercepts(String, Single, Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetTextIntercepts(SKTextBlob, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetTextIntercepts(ReadOnlySpan<Byte>, Single, Single, Single, Single)
GetTextIntercepts(Byte[], Single, Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetTextIntercepts(ReadOnlySpan<Char>, Single, Single, Single, Single)

GetTextIntercepts(IntPtr, Int32, Single, Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetTextIntercepts (IntPtr text, int length, float x, float y, float upperBounds, float lowerBounds);

Parameters

text
IntPtr

The text buffer encoded using the encoding specified in TextEncoding format.

length
Int32

The length of the text buffer.

x
Single

The x-coordinate of the origin to the text.

y
Single

The y-coordinate of the origin to the text.

upperBounds
Single

The upper line parallel to the advance.

lowerBounds
Single

The lower line parallel to the advance.

Returns

Single[]

Returns the intersections of two parallel lines and the glyphs.

Remarks

Uses TextEncoding to decode text, Typeface to get the font metrics, and TextSize, FakeBoldText and PathEffect to scale and modify the glyph paths.

Applies to

GetTextIntercepts(IntPtr, IntPtr, Single, Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetTextIntercepts (IntPtr text, IntPtr length, float x, float y, float upperBounds, float lowerBounds);

Parameters

text
IntPtr

The text buffer encoded using the encoding specified in TextEncoding format.

length
IntPtr

The length of the text buffer.

x
Single

The x-coordinate of the origin to the text.

y
Single

The y-coordinate of the origin to the text.

upperBounds
Single

The upper line parallel to the advance.

lowerBounds
Single

The lower line parallel to the advance.

Returns

Single[]

Returns the intersections of two parallel lines and the glyphs.

Remarks

Uses TextEncoding to decode text, Typeface to get the font metrics, and TextSize, FakeBoldText and PathEffect to scale and modify the glyph paths.

Applies to

GetTextIntercepts(String, Single, Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetTextIntercepts (string text, float x, float y, float upperBounds, float lowerBounds);

Parameters

text
String

The text.

x
Single

The x-coordinate of the origin to the text.

y
Single

The y-coordinate of the origin to the text.

upperBounds
Single

The upper line parallel to the advance.

lowerBounds
Single

The lower line parallel to the advance.

Returns

Single[]

Returns the intersections of two parallel lines and the glyphs.

Remarks

Uses TextEncoding to decode text, Typeface to get the font metrics, and TextSize, FakeBoldText and PathEffect to scale and modify the glyph paths.

Applies to

GetTextIntercepts(SKTextBlob, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetTextIntercepts (SkiaSharp.SKTextBlob text, float upperBounds, float lowerBounds);

Parameters

text
SKTextBlob

The text blob.

upperBounds
Single

The upper line parallel to the advance.

lowerBounds
Single

The lower line parallel to the advance.

Returns

Single[]

Returns the intersections of two parallel lines and the glyphs.

Remarks

Uses TextEncoding to decode text, Typeface to get the font metrics, and TextSize, FakeBoldText and PathEffect to scale and modify the glyph paths.

Applies to

GetTextIntercepts(ReadOnlySpan<Byte>, Single, Single, Single, Single)

public float[] GetTextIntercepts (ReadOnlySpan<byte> text, float x, float y, float upperBounds, float lowerBounds);

Parameters

x
Single
y
Single
upperBounds
Single
lowerBounds
Single

Returns

Single[]

Applies to

GetTextIntercepts(Byte[], Single, Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetTextIntercepts (byte[] text, float x, float y, float upperBounds, float lowerBounds);

Parameters

text
Byte[]

The text encoded using the encoding specified in TextEncoding format.

x
Single

The x-coordinate of the origin to the text.

y
Single

The y-coordinate of the origin to the text.

upperBounds
Single

The upper line parallel to the advance.

lowerBounds
Single

The lower line parallel to the advance.

Returns

Single[]

Returns the intersections of two parallel lines and the glyphs.

Remarks

Uses TextEncoding to decode text, Typeface to get the font metrics, and TextSize, FakeBoldText and PathEffect to scale and modify the glyph paths.

Applies to

GetTextIntercepts(ReadOnlySpan<Char>, Single, Single, Single, Single)

public float[] GetTextIntercepts (ReadOnlySpan<char> text, float x, float y, float upperBounds, float lowerBounds);

Parameters

x
Single
y
Single
upperBounds
Single
lowerBounds
Single

Returns

Single[]

Applies to