hencoder / practicedraw4 Goto Github PK
View Code? Open in Web Editor NEW《HenCoder Android 开发进阶:UI 1-4 Canvas 对绘制的辅助》 的练习项目
Home Page: http://hencoder.com/ui-1-4
《HenCoder Android 开发进阶:UI 1-4 Canvas 对绘制的辅助》 的练习项目
Home Page: http://hencoder.com/ui-1-4
Camera.rotateX/Y()修正版
如果图形没有绘制在Canvase中心,
修正后图形也不是对称的(即使我换成了一张正方形的图片)
做练习做到 有关矩阵的部分的时候,突然想起朱老师将 Sample 中 Canvas.setMatrix()
改为了 Canvas.concat()
。
这里我不是很理解 , Canvas.concat()
会对显示造成什么问题?
讲道理,set
不应该比 concat
更好吗- -?
为啥 set
还会出现问题,而 concat
反而可以高枕无忧 ?
下面附上 朱老师的提交 记录
commit 00101aa31b9802e33e01697a133d8036a8a2726d
Author: Kai Zhu <[email protected]>
Date: Tue Aug 8 11:35:38 2017 +0800
把 Canvas.setMatrix() 改为 Canvas.concat(),避免有些机型中出现的显示问题。
.../hencoderpracticedraw4/sample/Sample07MatrixTranslateView.java | 4 ++--
.../hencoderpracticedraw4/sample/Sample08MatrixScaleView.java | 4 ++--
.../hencoderpracticedraw4/sample/Sample09MatrixRotateView.java | 4 ++--
.../hencoder/hencoderpracticedraw4/sample/Sample10MatrixSkewView.java | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
setDegree()从何而来,如何回调来的
我能说凯哥越来越懒了吗?现在都不给提示0.0
为啥一上来就是代码...
题目 (注释) 咋不见了- -
难道是朱老师太忙了吗?
Camera.rotateX/Y()修正版的效果明显不对呀(虽然代码我没看出毛病)
修正后图形应该是对称的,但是出来的效果明显没有对称呀
如題,糊臉修正上和下是一樣的~
看了代碼,Sample那裡有準備Z的量,但在onDraw沒有使用
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.