关于setPolyToPoly方法
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- android, java
- Domain
- documentation, mobile
Research direction
Start with the setPolyToPoly documentation and the issue's src, dst, index, and pointCount examples. Verify how each pointCount value affects the matrix and whether applying that matrix changes subsequent bitmap drawing. Done means documenting the transform scope and answering the bitmap-half question.
Written by the indexing model from the issue text.
Description
我测试后得出的结论不一定对不 但是感觉看完你的我还是有点迷糊 所以就想补充下呢~ PointCount的含义
src : The array of src [x,y] pairs (points)
srcIndex : Index of the first pair of src values(既 第一个点在src的那个位置)
dst : The array of dst [x,y] pairs (points)
dstIndex : Index of the first pair of dst values(既 第一个点在dst的那个位置)
pointCount : The number of pairs/points to be used. Must be [0..4]
总结其含义:
其实最终是反求Matrix。pointCount代表使用dst,src里的几个点,
如果pointCount是1 :
通过src里的0变化到dst里的0 ;计算最终的matrix可以知道 这个是位移;
如果pointCount是2 :
src里的0,1 变化到dst里的0,1 反求matrix可以知道 这个是 缩放,旋转,位移;
如果pointCount是3 :
src里的0,1 ,2 变化到dst里的0,1,2 反求matrix;具体咋变的按不动 反正是反求;
经过测试(这个只是我的疑问,本来不应该有的 但是你用他绘图突然我就有了。。。):
1.如果我用如果我宽度 用btMap的一半呢?绘制btmap,后半的btmap会怎样?
因为调用这个的方法结果是Matrix改变,所以画布 绘画的时候,调用Matrix也是整体改变。那么btMap后边的一半也会随着Matrix改变而不是不变!
- Dominant language
- Java
- Stars
- 9.3k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GcsSloop/AndroidNote
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
GcsSloop/AndroidNote#116 ·
-
安卓 Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
GcsSloop/AndroidNote#115 ·
-
章节缺失:安卓自定义View进阶 Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
GcsSloop/AndroidNote#114 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 55/100
GcsSloop/AndroidNote#111 · 2 reactions ·
-
博客有几篇打不开了 Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
GcsSloop/AndroidNote#110 ·
All issues in GcsSloop/AndroidNote
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cryptomator/hub#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johanhaleby/occurrent#1120 ·