Paint相当于Android中的画笔,Paint的主要功能包括如下:
方法 | 方法说明 |
setAntiAlias(boolean aa) | 设置画笔的锯齿效果 |
setColor(int color) | 设置画笔的颜色 |
setARGB(int a, int r, int g, int b) | 设置画笔的A、R、G、B值 |
setAlpha(int a) | 设置画笔的Alpha值 |
setTextSize(float textSize) | 设置字体的尺寸 |
setStyle(Style style) | 设置画笔的风格(空心或实体) |
setStrokeWidth(float width) | 设置空心边框的宽度 |