Android.Graphics.Paint: Method Members

The methods of Android.Graphics.Paint are listed below. For a list of all members, see the Paint Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

Ascent() : float
Return the distance above (negative) the baseline (ascent) based on the current typeface and text size.
BreakText(string, bool, float, float[]) : int
Measure the text, stopping early if the measured width exceeds maxWidth.
BreakText(char[], int, int, float, float[]) : int
Measure the text, stopping early if the measured width exceeds maxWidth.
BreakText(Java.Lang.ICharSequence, int, int, bool, float, float[]) : int
Measure the text, stopping early if the measured width exceeds maxWidth.
BreakText(string, int, int, bool, float, float[]) : int
Documentation for this section has not yet been entered.
ClearShadowLayer()
Clear the shadow layer.
Descent() : float
Return the distance below (positive) the baseline (descent) based on the current typeface and text size.
GetFillPath(Path, Path) : bool
Applies any/all effects (patheffect, stroking) to src, returning the result in dst.
GetFontMetrics() : Paint.FontMetrics
Allocates a new FontMetrics object, and then calls getFontMetrics(fm) with it, returning the object.
GetFontMetrics(Paint.FontMetrics) : float
Return the font's recommended interline spacing, given the Paint's settings for typeface, textSize, etc.
GetFontMetricsInt() : Paint.FontMetricsInt
GetFontMetricsInt(Paint.FontMetricsInt) : int
Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc.
GetStyle() : Paint.Style
Return the paint's style, used for controlling how primitives' geometries are interpreted (except for drawBitmap, which always assumes FILL_STYLE).
GetTextBounds(char[], int, int, Rect)
Return in bounds (allocated by the caller) the smallest rectangle that encloses all of the characters, with an implied origin at (0,0).
GetTextBounds(string, int, int, Rect)
Return in bounds (allocated by the caller) the smallest rectangle that encloses all of the characters, with an implied origin at (0,0).
GetTextPath(char[], int, int, float, float, Path)
Return the path (outline) for the specified text.
GetTextPath(string, int, int, float, float, Path)
Return the path (outline) for the specified text.
GetTextWidths(string, float[]) : int
Return the advance widths for the characters in the string.
GetTextWidths(Java.Lang.ICharSequence, int, int, float[]) : int
Return the advance widths for the characters in the string.
GetTextWidths(char[], int, int, float[]) : int
Return the advance widths for the characters in the string.
GetTextWidths(string, int, int, float[]) : int
Return the advance widths for the characters in the string.
MeasureText(string) : float
Return the width of the text.
MeasureText(Java.Lang.ICharSequence, int, int) : float
Return the width of the text.
MeasureText(char[], int, int) : float
Return the width of the text.
MeasureText(string, int, int) : float
Return the width of the text.
Reset()
Restores the paint to its default settings.
Set(Paint)
Copy the fields from src into this paint.
SetARGB(int, int, int, int)
Helper to setColor(), that takes a,r,g,b and constructs the color int
SetColorFilter(ColorFilter) : ColorFilter
Set or clear the paint's colorfilter, returning the parameter.
SetMaskFilter(MaskFilter) : MaskFilter
Set or clear the maskfilter object.
SetPathEffect(PathEffect) : PathEffect
Set or clear the patheffect object.
SetRasterizer(Rasterizer) : Rasterizer
Set or clear the rasterizer object.
SetShader(Shader) : Shader
Set or clear the shader object.
SetShadowLayer(float, float, float, Color)
This draws a shadow layer below the main layer, with the specified offset and color, and blur radius.
SetStyle(Paint.Style)
Set the paint's style, used for controlling how primitives' geometries are interpreted (except for drawBitmap, which always assumes Fill).
SetTypeface(Typeface) : Typeface
Set or clear the typeface object.
SetXfermode(Xfermode) : Xfermode
Set or clear the xfermode object.