android,,canvas.drawTextOnPath(str, pathCir, 10, 50, paint);这个10,50表示什么意思啊??
canvas.drawTextOnPath(str,pathCir,10,50,paint);////////////////////////////publicvoid...
canvas.drawTextOnPath(str, pathCir, 10, 50, paint);
////////////////////////////
public void drawTextOnPath(String text,
Path path,
float hOffset,
float vOffset,
Paint paint)
Draw the text, with origin at (x,y), using the specified paint, along the
specified path. The paint's Align setting determins where along the path to
start the text.
参数:
text - The text to be drawn
path - The path the text should follow for its baseline
hOffset - The distance along the path to add to the text's
starting position
vOffset - The distance above(-) or below(+) the path to
position the text
paint - The paint used for the text (e.g. color, size,
style) 展开
////////////////////////////
public void drawTextOnPath(String text,
Path path,
float hOffset,
float vOffset,
Paint paint)
Draw the text, with origin at (x,y), using the specified paint, along the
specified path. The paint's Align setting determins where along the path to
start the text.
参数:
text - The text to be drawn
path - The path the text should follow for its baseline
hOffset - The distance along the path to add to the text's
starting position
vOffset - The distance above(-) or below(+) the path to
position the text
paint - The paint used for the text (e.g. color, size,
style) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询