SKPaint.GetTextIntercepts 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
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
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
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
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
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)
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
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)
SkiaSharp