android.graphics.Path
| java.lang.Object | |
| ↳ | android.graphics.Path |
Class Overview
The Path class encapsulates compound (multiple contour) geometric paths consisting of straight line segments, quadratic curves, and cubic curves. It can be drawn with canvas.drawPath(path, paint), either filled or stroked (based on the paint's Style), or it can be used for clipping or to draw text on a path.
这个Path类封装复合了由直线段几何路径二维曲线及立方体曲线组成的(多种轮廓的)几何路径。这些路线可以通过Canvas.drawPath(path,paint)方法来画出,填充或者用画笔描画(根据画笔的风格)出来;或者这些路线可以用来剪切或者绘制文本。
Summary
本文详细介绍了 Android 中 Path 类的功能和用途。Path 类用于封装由直线、二次曲线和三次曲线组成的复合几何路径。开发者可通过 Canvas.drawPath 方法绘制这些路径,并根据需要进行填充或描边。此外,Path 还可用于剪切或绘制文本。
8556

被折叠的 条评论
为什么被折叠?



