Canvas.DrawGlyphs(Int32[], Int32, Single[], Int32, Int32, Font, Paint) 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.
Draw array of glyphs with specified font.
[Android.Runtime.Register("drawGlyphs", "([II[FIILandroid/graphics/fonts/Font;Landroid/graphics/Paint;)V", "GetDrawGlyphs_arrayIIarrayFIILandroid_graphics_fonts_Font_Landroid_graphics_Paint_Handler", ApiSince=31)]
public virtual void DrawGlyphs (int[] glyphIds, int glyphIdOffset, float[] positions, int positionOffset, int glyphCount, Android.Graphics.Fonts.Font font, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawGlyphs", "([II[FIILandroid/graphics/fonts/Font;Landroid/graphics/Paint;)V", "GetDrawGlyphs_arrayIIarrayFIILandroid_graphics_fonts_Font_Landroid_graphics_Paint_Handler", ApiSince=31)>]
abstract member DrawGlyphs : int[] * int * single[] * int * int * Android.Graphics.Fonts.Font * Android.Graphics.Paint -> unit
override this.DrawGlyphs : int[] * int * single[] * int * int * Android.Graphics.Fonts.Font * Android.Graphics.Paint -> unit
Parameters
- glyphIds
- Int32[]
Array of glyph IDs. The length of array must be greater than or equal to
glyphIdOffset + glyphCount
.
- glyphIdOffset
- Int32
Number of elements to skip before drawing in glyphIds
array.
- positions
- Single[]
A flattened X and Y position array. The first glyph X position must be
stored at positionOffset
. The first glyph Y position must be stored
at positionOffset + 1
, then the second glyph X position must be
stored at positionOffset + 2
.
The length of array must be greater than or equal to
positionOffset + glyphCount * 2
.
- positionOffset
- Int32
Number of elements to skip before drawing in positions
.
The first glyph X position must be stored at positionOffset
.
The first glyph Y position must be stored at
positionOffset + 1
, then the second glyph X position must be
stored at positionOffset + 2
.
- glyphCount
- Int32
Number of glyphs to be drawn.
- font
- Font
Font used for drawing.
- paint
- Paint
Paint used for drawing. The typeface set to this paint is ignored.
- Attributes
Remarks
Draw array of glyphs with specified font.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.