源码简介
功能齐全的涂鸦APP
源码运行截图
源码片段
- private void setCurAction(float mX, float mY) {
- switch (currentPaintTool) {
- case 0:
- paint = new Paint();
- paint.setColor(currentColor);
- paint.setStrokeWidth(currentSize);
- curAction = new MyPath(mX, mY, paint);
- // 光滑曲线
- break;
- case 1:
- paint = new Paint();
- paint.setStrokeWidth(currentSize);
- // 橡皮擦
- curAction = new MyEraser(mX, mY, paint);
- break;
- case 2:
- // 小图片
- curAction = new MyMinPic(minPicMatrix, minBm);
- curAction.draw(tmpCanvas);
- break;
- case 3:
- //
- if (b != null)
- curAction = new MyPic(b, mX, mY, tmpCanvas);
- break;
- }
- }
源码链接:http://down.51cto.com/data/1981909