Canvas上可以添加多个drawText吗
1个回答
2016-04-23
展开全部
canvas.drawText("a", 20, 40,paint);
canvas.drawText("b", 20, 60,paint);
canvas.drawText("c", 20, 80,paint);
需要在Canvas上添加多个文本。使用一个drawText的时候没有问题,但是使用多个时就报错。
错误提示:
E/rsC++: RS CPP error: Blur radius out of 0-25 pixel bound
E/rsC++: RS CPP error (masked by previous error): www.hbbz08.com Allocation creation failed
E/rsC++: RS CPP error (masked by previous error): Allocation creation failed
E/rsC++: RS CPP error (masked by previous error): Blur radius out of 0-25 pixel bound
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x28 in tid 19429 (RenderThread)
解决方案1:
关于paint的初始化及设置贴出来一下,是不是paint设置的阴影出了问题
canvas.drawText("b", 20, 60,paint);
canvas.drawText("c", 20, 80,paint);
需要在Canvas上添加多个文本。使用一个drawText的时候没有问题,但是使用多个时就报错。
错误提示:
E/rsC++: RS CPP error: Blur radius out of 0-25 pixel bound
E/rsC++: RS CPP error (masked by previous error): www.hbbz08.com Allocation creation failed
E/rsC++: RS CPP error (masked by previous error): Allocation creation failed
E/rsC++: RS CPP error (masked by previous error): Blur radius out of 0-25 pixel bound
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x28 in tid 19429 (RenderThread)
解决方案1:
关于paint的初始化及设置贴出来一下,是不是paint设置的阴影出了问题
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询