Editar

Compartir a través de


SKPaint.GetHorizontalTextIntercepts Method

Definition

Overloads

GetHorizontalTextIntercepts(IntPtr, IntPtr, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetHorizontalTextIntercepts(String, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetHorizontalTextIntercepts(IntPtr, Int32, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

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

Calculate the intersections of two parallel lines and the glyphs.

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

GetHorizontalTextIntercepts(IntPtr, IntPtr, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetHorizontalTextIntercepts (IntPtr text, IntPtr length, float[] xpositions, 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.

xpositions
Single[]

The positions of each glyph in the horizontal direction.

y
Single

The positions of all the glyphs along the y-coordinate.

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

GetHorizontalTextIntercepts(String, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetHorizontalTextIntercepts (string text, float[] xpositions, float y, float upperBounds, float lowerBounds);

Parameters

text
String

The text.

xpositions
Single[]

The positions of each glyph in the horizontal direction.

y
Single

The positions of all the glyphs along the y-coordinate.

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

GetHorizontalTextIntercepts(IntPtr, Int32, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetHorizontalTextIntercepts (IntPtr text, int length, float[] xpositions, 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.

xpositions
Single[]

The positions of each glyph in the horizontal direction.

y
Single

The positions of all the glyphs along the y-coordinate.

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

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

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

Parameters

xpositions
ReadOnlySpan<Single>
y
Single
upperBounds
Single
lowerBounds
Single

Returns

Single[]

Applies to

GetHorizontalTextIntercepts(Byte[], Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetHorizontalTextIntercepts (byte[] text, float[] xpositions, float y, float upperBounds, float lowerBounds);

Parameters

text
Byte[]

The text encoded using the encoding specified in TextEncoding format.

xpositions
Single[]

The positions of each glyph in the horizontal direction.

y
Single

The positions of all the glyphs along the y-coordinate.

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

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

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

Parameters

xpositions
ReadOnlySpan<Single>
y
Single
upperBounds
Single
lowerBounds
Single

Returns

Single[]

Applies to