本文介绍了Android的 - 如何加入用油漆两点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要画一个字母AZ,但字母应该在特定的路径绘制的..所以,我试图协调两个点,使两点之间的路径,并使用烤漆连接两个点..但我无法使两点之间的路径。谁能告诉我如何做一个路径,以及如何连接两个点?
I want to draw a Alphabets A-Z but the alphabets should drawn in particular path.. so,i tried to co-ordinate two points and make a path between two points and using paint join two points..But i could not able to make path between two points. can anyone tell me how to make a path and how to join two points?
推荐答案
在实际的线连接两个点?
as in an actual line to connect two points?
你的画布中:
Paint p = new Paint();
p.setColor(Color.RED);
canvas.drawLine(x1, y1, x2, y2, p);
这篇关于Android的 - 如何加入用油漆两点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!