第6月第17天 CGAffineTransformMake(a,b,c,d,tx,ty) 矩阵运算的原理
2024-09-27 15:04:38
1.
为了把二维图形的变化统一在一个坐标系里,引入了齐次坐标的概念,即把一个图形用一个三维矩阵表示,其中第三列总是(0,0,1),用来作为坐标系的标准。所以所有的变化都由前两列完成。
以上参数在矩阵中的表示为:
|a b 0|
|c d 0|
|tx ty 1|
运算原理:原坐标设为(X,Y,1);
|a b 0|
[X,Y, 1] |c d 0| = [aX + cY + tx bX + dY + ty 1] ;
|tx ty 1|
通过矩阵运算后的坐标[aX + cY + tx bX + dY + ty 1],我们对比一下可知:
http://blog.csdn.net/x32sky/article/details/43523771
2.
用UIGraphicsBeginImageContextWithOptions 方法 可以设置图片的scale ,UIGraphicsBeginImageContext 默认生成的图片是1scale
http://code4app.com/requirement/56172f8f594b906a0f8b46bf
3.
_writer = [[GPUImageMovieWriter alloc]initWithMovieURL:url size:CGSizeMake(640, 640) fileType:AVFileTypeMPEG4 outputSettings:nil];
_writer.encodingLiveVideo = YES;
_writer.assetWriter.movieFragmentInterval = kCMTimeInvalid;
http://blog.csdn.net/yi215415/article/details/53168179?locationNum=3&fps=1
最新文章
- 今天开始Swift学习
- 详解MySQL的用户密码过期功能
- easyui tree 折叠节点
- Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat
- [CareerCup] 1.2 Reverse String 翻转字符串
- MAC常用快捷键
- leetcode第八题 String to Integer (atoi) (java)
- JS学习之页面加载
- day2_python学习笔记_chapter4_标准类型和内建函数
- WiX Toolset
- ios 贝塞尔画图
- 定时任务管理中心(dubbo+spring)-我们到底能走多远系列47
- Maven测试篇
- k8s通过service访问pod(五)--技术流ken
- python基础—字典的使用{}
- NodeJS 连接接MySQL
- Python—requests模块详解
- VS从数据库表生成Model代码
- int __get_order(unsigned long size)
- [Winform]默认以管理员身份运行程序
热门文章
- PAT甲题题解-1013. Battle Over Cities (25)-求联通分支个数
- 【MOOC EXP】Linux内核分析实验三报告
- 关于 error C2039: “create”: 不是“cocos2d::GLView”的成员的解决方法
- 重温jsp①
- “数学口袋精灵”第二个Sprint计划(第四天)
- (Alpha)Let's-展示博客
- java 封装,继承,多态基础
- git learn
- spirngcloud文件
- JAVA的垃圾回收机制(GC)