Nativescript Doc
Preparing search index...
The search index is not available
Documentation
Documentation
ui-canvas
Paint
Class Paint
Hierarchy (
View Summary
)
ProxyClass
Paint
Index
Constructors
constructor
Properties
color
font
font
Family
font
Style
font
Weight
letter
Spacing
stroke
Cap
stroke
Join
stroke
Width
style
text
Size
Methods
clear
Shadow
Layer
get
Alpha
get
Color
get
Color
Filter
get
Font
get
Font
Family
get
Font
Metrics
get
Letter
Spacing
get
Native
get
Shader
get
Stroke
Cap
get
Stroke
Join
get
Stroke
Miter
get
Stroke
Width
get
Style
get
Text
Align
get
Text
Bounds
get
Text
Path
get
Text
Size
get
Xfermode
is
Anti
Alias
is
Dither
measure
Text
set
Alpha
set
Anti
Alias
setARGB
set
Color
set
Color
Filter
set
Dither
set
Filter
Bitmap
set
Font
set
Font
Family
set
Font
Style
set
Font
Weight
set
Letter
Spacing
set
Native
set
Path
Effect
set
Shader
set
Shadow
Layer
set
Stroke
Cap
set
Stroke
Join
set
Stroke
Miter
set
Stroke
Width
set
Style
set
Text
Align
set
Text
Size
set
Typeface
set
Xfermode
Constructors
constructor
new
Paint
(
paint
?:
Paint
)
:
Paint
Parameters
Optional
paint
:
Paint
Returns
Paint
Properties
color
color
:
any
font
font
:
Font
font
Family
fontFamily
:
string
font
Style
fontStyle
:
FontStyleType
font
Weight
fontWeight
:
FontWeightType
letter
Spacing
letterSpacing
:
number
stroke
Cap
strokeCap
:
Cap
stroke
Join
strokeJoin
:
Join
stroke
Width
strokeWidth
:
number
style
style
:
Style
text
Size
textSize
:
number
Methods
clear
Shadow
Layer
clearShadowLayer
()
:
any
Returns
any
get
Alpha
getAlpha
()
:
number
Returns
number
get
Color
getColor
()
:
any
Returns
any
get
Color
Filter
getColorFilter
()
:
ColorFilter
Returns
ColorFilter
get
Font
getFont
()
:
Font
Returns
Font
get
Font
Family
getFontFamily
()
:
string
Returns
string
get
Font
Metrics
getFontMetrics
()
:
FontMetrics
Returns
FontMetrics
getFontMetrics
(
fontMetrics
?:
FontMetrics
)
:
number
Parameters
Optional
fontMetrics
:
FontMetrics
Returns
number
get
Letter
Spacing
getLetterSpacing
()
:
number
Returns
number
get
Native
getNative
()
:
any
Returns
any
get
Shader
getShader
()
:
Shader
Returns
Shader
get
Stroke
Cap
getStrokeCap
()
:
Cap
Returns
Cap
get
Stroke
Join
getStrokeJoin
()
:
Join
Returns
Join
get
Stroke
Miter
getStrokeMiter
()
:
number
Returns
number
get
Stroke
Width
getStrokeWidth
()
:
number
Returns
number
get
Style
getStyle
()
:
Style
Returns
Style
get
Text
Align
getTextAlign
()
:
Align
Returns
Align
get
Text
Bounds
getTextBounds
(
text
:
string
,
index
:
number
,
bounds
:
number
,
rect
:
Rect
)
:
void
Parameters
text
:
string
index
:
number
bounds
:
number
rect
:
Rect
Returns
void
get
Text
Path
getTextPath
(
text
:
string
,
index
:
number
,
bounds
:
number
,
x
:
number
,
y
:
number
,
path
:
Path
,
)
:
void
Parameters
text
:
string
index
:
number
bounds
:
number
x
:
number
y
:
number
path
:
Path
Returns
void
get
Text
Size
getTextSize
()
:
number
Returns
number
get
Xfermode
getXfermode
()
:
PorterDuffXfermode
Returns
PorterDuffXfermode
is
Anti
Alias
isAntiAlias
()
:
boolean
Returns
boolean
is
Dither
isDither
()
:
boolean
Returns
boolean
measure
Text
measureText
(
text
:
string
)
:
number
Parameters
text
:
string
Returns
number
measureText
(
text
:
string
,
start
:
number
,
end
:
number
)
:
number
Parameters
text
:
string
start
:
number
end
:
number
Returns
number
set
Alpha
setAlpha
(
value
:
number
)
:
void
Parameters
value
:
number
Returns
void
set
Anti
Alias
setAntiAlias
(
value
:
boolean
)
:
void
Parameters
value
:
boolean
Returns
void
setARGB
setARGB
(
a
:
number
,
r
:
number
,
g
:
number
,
b
:
number
)
:
void
Parameters
a
:
number
r
:
number
g
:
number
b
:
number
Returns
void
set
Color
setColor
(
color
:
any
)
:
any
Parameters
color
:
any
Returns
any
set
Color
Filter
setColorFilter
(
param0
:
ColorFilter
)
:
ColorFilter
Parameters
param0
:
ColorFilter
Returns
ColorFilter
set
Dither
setDither
(
value
:
boolean
)
:
void
Parameters
value
:
boolean
Returns
void
set
Filter
Bitmap
setFilterBitmap
(
param0
:
boolean
)
:
any
Parameters
param0
:
boolean
Returns
any
set
Font
setFont
(
font
:
Font
)
:
any
Parameters
font
:
Font
Returns
any
set
Font
Family
setFontFamily
(
familyName
:
string
)
:
any
Parameters
familyName
:
string
Returns
any
set
Font
Style
setFontStyle
(
style
:
FontStyleType
)
:
any
Parameters
style
:
FontStyleType
Returns
any
set
Font
Weight
setFontWeight
(
weight
:
FontWeightType
)
:
any
Parameters
weight
:
FontWeightType
Returns
any
set
Letter
Spacing
setLetterSpacing
(
spacing
:
number
)
:
any
Parameters
spacing
:
number
Returns
any
set
Native
setNative
(
object
:
any
)
:
any
Parameters
object
:
any
Returns
any
set
Path
Effect
setPathEffect
(
param0
:
PathEffect
)
:
any
Parameters
param0
:
PathEffect
Returns
any
set
Shader
setShader
(
value
:
Shader
)
:
Shader
Parameters
value
:
Shader
Returns
Shader
set
Shadow
Layer
setShadowLayer
(
radius
:
number
,
dx
:
number
,
dy
:
number
,
color
:
any
)
:
void
Parameters
radius
:
number
dx
:
number
dy
:
number
color
:
any
Returns
void
set
Stroke
Cap
setStrokeCap
(
value
:
Cap
)
:
void
Parameters
value
:
Cap
Returns
void
set
Stroke
Join
setStrokeJoin
(
value
:
Join
)
:
void
Parameters
value
:
Join
Returns
void
set
Stroke
Miter
setStrokeMiter
(
value
:
number
)
:
void
Parameters
value
:
number
Returns
void
set
Stroke
Width
setStrokeWidth
(
value
:
number
)
:
void
Parameters
value
:
number
Returns
void
set
Style
setStyle
(
value
:
Style
)
:
void
Parameters
value
:
Style
Returns
void
set
Text
Align
setTextAlign
(
param0
:
Align
)
:
void
Parameters
param0
:
Align
Returns
void
set
Text
Size
setTextSize
(
value
:
number
)
:
void
Parameters
value
:
number
Returns
void
set
Typeface
setTypeface
(
newValue
:
Font
)
:
Font
Parameters
newValue
:
Font
Returns
Font
set
Xfermode
setXfermode
(
param0
:
PorterDuffXfermode
)
:
PorterDuffXfermode
Parameters
param0
:
PorterDuffXfermode
Returns
PorterDuffXfermode
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
color
font
font
Family
font
Style
font
Weight
letter
Spacing
stroke
Cap
stroke
Join
stroke
Width
style
text
Size
Methods
clear
Shadow
Layer
get
Alpha
get
Color
get
Color
Filter
get
Font
get
Font
Family
get
Font
Metrics
get
Letter
Spacing
get
Native
get
Shader
get
Stroke
Cap
get
Stroke
Join
get
Stroke
Miter
get
Stroke
Width
get
Style
get
Text
Align
get
Text
Bounds
get
Text
Path
get
Text
Size
get
Xfermode
is
Anti
Alias
is
Dither
measure
Text
set
Alpha
set
Anti
Alias
setARGB
set
Color
set
Color
Filter
set
Dither
set
Filter
Bitmap
set
Font
set
Font
Family
set
Font
Style
set
Font
Weight
set
Letter
Spacing
set
Native
set
Path
Effect
set
Shader
set
Shadow
Layer
set
Stroke
Cap
set
Stroke
Join
set
Stroke
Miter
set
Stroke
Width
set
Style
set
Text
Align
set
Text
Size
set
Typeface
set
Xfermode
Nativescript Doc
Documentation
Loading...