Paint paint = new Paint(); LinearGradient gradient = new LinearGradient(0, 0, 100, 100, Color.RED, Color.YELLOW, Shader.TileMode.MIRROR); paint.setShader(gradient); canvas.drawRect(0, 0, 100, 100, paint); canvas.drawText("This is the shader", 100, 100, paint);
作者:zlQQhs 发表于2013-2-23 2:47:01 原文链接
阅读:103 评论:0 查看评论