Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

关于setPolyToPoly方法

Open
#37 1 comment 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GcsSloop/AndroidNote

All issues in GcsSloop/AndroidNote

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.