Drawing an empty polygon given a set of points on a Map Overylay (Android 2.1)

夙愿已清 提交于 2019-11-30 16:48:08

Define a Paint object:

Paint mPaint = new Paint();
mPaint.setStrokeWidth(2);  //2 pixel line width
mPaint.setColor(0xFF097286); //tealish with no transparency
mPaint.setStyle(Paint.Style.STROKE); //stroked, aka a line with no fill
mPaint.setAntiAlias(true);  // no jagged edges, etc.

Then draw the path with:

yourCanvas.drawPath(path,mPaint);

You can look up the paint documentation but there are tons of options to control how its drawn.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!