分类
教程
文章
官方文档
入门教程
文章
VIP会员
微信小程序API 绘图·strokeText
赞
收藏
更多文章
目录
301 Moved Permanently
301 Moved Permanently
nginx
搜索
A
A
默认
护眼
夜间
阅读(4009)
赞
(
24
)
微信小程序API 绘图·strokeText
2018-03-23 15:05:19 更新
canvasContext.strokeText
基础库 1.9.90 开始支持,低版本需做
兼容处理
定义
给定的 (x, y) 位置绘制文本描边的方法
语法
canvasContext.strokeText(text, x, y, maxWidth)
参数
属性值
类型
说明
text
String
要绘制的文本
x
Number
文本起始点的 x 轴坐标
y
Number
文本起始点的 y 轴坐标
maxWidth
Number
需要绘制的最大宽度,可选
←
微信小程序API 绘图·arcTo
微信小程序API 绘图·lineDashOffset
→