Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想画一个字母 AZ,但字母应该画在特定的路径中。所以,我试图协调两个点并在两点之间制作一条路径,并使用油漆连接两个点。但我无法制作路径两点之间。谁能告诉我如何制作路径以及如何连接两点?
就像在一条实际的线上连接两点一样?
在你的画布中:
Paint p = new Paint(); p.setColor(Color.RED); canvas.drawLine(x1, y1, x2, y2, p);