Comments (7)
两个点确定一条直线。你要保存直线上的所有点?还是确定直线的这两个点?
from graffiti.
直线上所有的点的集合,不用保存直线上的点
from graffiti.
我看了源码,好像是在 mCurrPath.quadTo(
toX(mLastTouchX),
toY(mLastTouchY),
toX((mTouchX + mLastTouchX) / 2),
toY((mTouchY + mLastTouchY) / 2));这里有所有的点得集合,但这里有两个地方调用了,一个是Move得时候,另外一个是Cancel上也有,这里不是很清楚要怎么去保存
from graffiti.
我想知道怎么保存涂鸦上的点的坐标,相对于图片而言,而不是手机屏幕
from graffiti.
toX() toY()就是把屏幕坐标转换成图片坐标。或者你可以在mPathStack这个集合里找到所有涂鸦的坐标信息。
from graffiti.
楼主,你好.mPathStack的集合好像只记载了按下和抬起这两个点得集合,那么在move中怎么把一条线上的点给记录下来
from graffiti.
move记录在了GraffitPath里面的Path变量。
from graffiti.
Related Issues (20)
- 跳转很懵逼 HOT 2
- 我想知道怎么拿到文字的集合 HOT 3
- bug:旋转之后线条粗细不对 HOT 1
- 有毛边 HOT 6
- 横屏的时候,添加文字报错 HOT 3
- 能否做到文字可以换行呢 HOT 1
- 想修改一个文字那里,不知道您是怎么添加的那个旋转的尾巴,如果我想修改对文字的操作,为它加上边框,在四个角上加上缩放、旋转等功能,这个您可以给个思路吗?比较菜,看您的代码比较一知半解。。
- View 绘制 HOT 1
- 添加带标签的文字 HOT 4
- 你好 我想问你一个问题 HOT 5
- 涂鸦覆盖面积 HOT 3
- 画直线边缘 毛糙 HOT 1
- ReadMe in English?
- 依赖库不对吧? HOT 2
- 大神能否加一个裁剪的功能啊 HOT 2
- 超大图片涂鸦有什么思路吗 HOT 1
- 建议把apk放上去
- 跳转有点蒙 HOT 4
- 橡皮功能效果欠佳 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graffiti.