SKPaint.GetPositionedTextIntercepts 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
GetPositionedTextIntercepts(Byte[], SKPoint[], Single, Single) |
Calculate the intersections of two parallel lines and the glyphs. |
GetPositionedTextIntercepts(ReadOnlySpan<Byte>, ReadOnlySpan<SKPoint>, Single, Single) | |
GetPositionedTextIntercepts(ReadOnlySpan<Char>, ReadOnlySpan<SKPoint>, Single, Single) | |
GetPositionedTextIntercepts(String, SKPoint[], Single, Single) |
Calculate the intersections of two parallel lines and the glyphs. |
GetPositionedTextIntercepts(IntPtr, Int32, SKPoint[], Single, Single) |
Calculate the intersections of two parallel lines and the glyphs. |
GetPositionedTextIntercepts(IntPtr, IntPtr, SKPoint[], Single, Single) |
Calculate the intersections of two parallel lines and the glyphs. |
GetPositionedTextIntercepts(Byte[], SKPoint[], Single, Single)
Calculate the intersections of two parallel lines and the glyphs.
public float[] GetPositionedTextIntercepts (byte[] text, SkiaSharp.SKPoint[] positions, float upperBounds, float lowerBounds);
Parameters
- text
- Byte[]
The text encoded using the encoding specified in TextEncoding format.
- positions
- SKPoint[]
The positions of each glyph.
- upperBounds
- Single
The upper line parallel to the advance.
- lowerBounds
- Single
The lower line parallel to the advance.
Returns
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
GetPositionedTextIntercepts(ReadOnlySpan<Byte>, ReadOnlySpan<SKPoint>, Single, Single)
public float[] GetPositionedTextIntercepts (ReadOnlySpan<byte> text, ReadOnlySpan<SkiaSharp.SKPoint> positions, float upperBounds, float lowerBounds);
Parameters
- text
- ReadOnlySpan<Byte>
- positions
- ReadOnlySpan<SKPoint>
- upperBounds
- Single
- lowerBounds
- Single
Returns
Applies to
GetPositionedTextIntercepts(ReadOnlySpan<Char>, ReadOnlySpan<SKPoint>, Single, Single)
public float[] GetPositionedTextIntercepts (ReadOnlySpan<char> text, ReadOnlySpan<SkiaSharp.SKPoint> positions, float upperBounds, float lowerBounds);
Parameters
- text
- ReadOnlySpan<Char>
- positions
- ReadOnlySpan<SKPoint>
- upperBounds
- Single
- lowerBounds
- Single
Returns
Applies to
GetPositionedTextIntercepts(String, SKPoint[], Single, Single)
Calculate the intersections of two parallel lines and the glyphs.
public float[] GetPositionedTextIntercepts (string text, SkiaSharp.SKPoint[] positions, float upperBounds, float lowerBounds);
Parameters
- text
- String
The text.
- positions
- SKPoint[]
The positions of each glyph.
- upperBounds
- Single
The upper line parallel to the advance.
- lowerBounds
- Single
The lower line parallel to the advance.
Returns
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
GetPositionedTextIntercepts(IntPtr, Int32, SKPoint[], Single, Single)
Calculate the intersections of two parallel lines and the glyphs.
public float[] GetPositionedTextIntercepts (IntPtr text, int length, SkiaSharp.SKPoint[] positions, 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.
- positions
- SKPoint[]
The positions of each glyph.
- upperBounds
- Single
The upper line parallel to the advance.
- lowerBounds
- Single
The lower line parallel to the advance.
Returns
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
GetPositionedTextIntercepts(IntPtr, IntPtr, SKPoint[], Single, Single)
Calculate the intersections of two parallel lines and the glyphs.
public float[] GetPositionedTextIntercepts (IntPtr text, IntPtr length, SkiaSharp.SKPoint[] positions, 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.
- positions
- SKPoint[]
The positions of each glyph.
- upperBounds
- Single
The upper line parallel to the advance.
- lowerBounds
- Single
The lower line parallel to the advance.
Returns
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
SkiaSharp