The members of Android.Graphics.Paint are listed below.
See Also: Inherited members from Java.Lang.Object
Paint() | Create a new paint with default settings. | |
Create a new paint, initialized with the attributes in the specified paint parameter. | ||
Create a new paint with the specified flags. |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
const | HintingOff | PaintHinting (0). Font hinter option that disables font hinting. |
const | HintingOn | PaintHinting (1). Font hinter option that enables font hinting. |
Alpha | int. Helper to getColor() that just returns the color's alpha value. | |
AntiAlias | bool. Helper for getFlags(), returning true if ANTI_ALIAS_FLAG bit is set AntiAliasing smooths out the edges of what is being drawn, but is has no impact on the interior of the shape. | |
Color | Color. Return the paint's color. | |
[read-only] | ColorFilter | ColorFilter. Get the paint's colorfilter (maybe be null). |
Dither | bool. Helper for getFlags(), returning true if DITHER_FLAG bit is set Dithering affects how colors that are higher precision than the device are down-sampled. | |
ElegantTextHeight | bool. Get the elegant metrics flag. | |
FakeBoldText | bool. Helper for getFlags(), returning true if FAKE_BOLD_TEXT_FLAG bit is set | |
FilterBitmap | bool. Whether or not the bitmap filter is activated. | |
Flags | PaintFlags. Return the paint's flags. | |
FontFeatureSettings | string. Get font feature settings. | |
[read-only] | FontSpacing | float. Return the recommend line spacing based on the current typeface and text size. |
Hinting | PaintHinting. Return the paint's hinting mode. | |
LetterSpacing | float. Return the paint's letter-spacing for text. | |
LinearText | bool. Helper for getFlags(), returning true if LINEAR_TEXT_FLAG bit is set | |
[read-only] | MaskFilter | MaskFilter. Get the paint's maskfilter object. |
[read-only] | PathEffect | PathEffect. Get the paint's patheffect object. |
[read-only] | Rasterizer | Rasterizer. Get the paint's rasterizer (or null). |
[read-only] | Shader | Shader. Get the paint's shader object. |
StrikeThruText | bool. Helper for getFlags(), returning true if STRIKE_THRU_TEXT_FLAG bit is set | |
StrokeCap | Paint.Cap. Return the paint's Cap, controlling how the start and end of stroked lines and paths are treated. | |
StrokeJoin | Paint.Join. Return the paint's stroke join type. | |
StrokeMiter | float. Return the paint's stroke miter value. | |
StrokeWidth | float. Return the width for stroking. | |
SubpixelText | bool. Helper for getFlags(), returning true if SUBPIXEL_TEXT_FLAG bit is set | |
TextAlign | Paint.Align. Return the paint's Align value for drawing text. | |
TextLocale | Java.Util.Locale. Get the text Locale. | |
TextScaleX | float. Return the paint's horizontal scale factor for text. | |
TextSize | float. Return the paint's text size. | |
TextSkewX | float. Return the paint's horizontal skew factor for text. | |
[read-only] | Typeface | Typeface. Get the paint's typeface object. |
UnderlineText | bool. Helper for getFlags(), returning true if UNDERLINE_TEXT_FLAG bit is set | |
[read-only] | Xfermode | Xfermode. Get the paint's xfermode object. |
[read-only] override | ThresholdClass | IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
[read-only] override | ThresholdType | Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Ascent()Return the distance above (negative) the baseline (ascent) based on the current typeface and text size. | ||
BreakText(string, bool, float, float[])Measure the text, stopping early if the measured width exceeds maxWidth. | ||
BreakText(char[], int, int, float, float[])Measure the text, stopping early if the measured width exceeds maxWidth. | ||
BreakText(Java.Lang.ICharSequence, int, int, bool, float, float[])Measure the text, stopping early if the measured width exceeds maxWidth. | ||
BreakText(string, int, int, bool, float, float[])Documentation for this section has not yet been entered. | ||
ClearShadowLayer()Clear the shadow layer. | ||
Descent()Return the distance below (positive) the baseline (descent) based on the current typeface and text size. | ||
GetFillPath(Path, Path)Applies any/all effects (patheffect, stroking) to src, returning the result in dst. | ||
GetFontMetrics()Allocates a new FontMetrics object, and then calls getFontMetrics(fm) with it, returning the object. | ||
GetFontMetrics(Paint.FontMetrics)Return the font's recommended interline spacing, given the Paint's settings for typeface, textSize, etc. | ||
GetFontMetricsInt() | ||
GetFontMetricsInt(Paint.FontMetricsInt)Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc. | ||
GetStyle()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[])Return the advance widths for the characters in the string. | ||
GetTextWidths(Java.Lang.ICharSequence, int, int, float[])Return the advance widths for the characters in the string. | ||
GetTextWidths(char[], int, int, float[])Return the advance widths for the characters in the string. | ||
GetTextWidths(string, int, int, float[])Return the advance widths for the characters in the string. | ||
MeasureText(string)Return the width of the text. | ||
MeasureText(Java.Lang.ICharSequence, int, int)Return the width of the text. | ||
MeasureText(char[], int, int)Return the width of the text. | ||
MeasureText(string, int, int)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)Set or clear the paint's colorfilter, returning the parameter. | ||
SetMaskFilter(MaskFilter)Set or clear the maskfilter object. | ||
SetPathEffect(PathEffect)Set or clear the patheffect object. | ||
SetRasterizer(Rasterizer)Set or clear the rasterizer object. | ||
SetShader(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)Set or clear the typeface object. | ||
SetXfermode(Xfermode)Set or clear the xfermode object. |