Quartz 2D Coordinate Systems

CALayer

Core Animation

---------------------------------

Quartz 2D Coordinate Systems

坐标系是什么?是定义了

defines the range of locations used to express the location and sizes of objects to be drawn on the page

Quartz使用,独立的坐标系--映射到相应的坐标系

从user space---到device space,使用CTM--当前转换矩阵---current transformation matrix

仿射矩阵---平移、旋转、缩放--translation, rotation, and scaling operations

so,告诉我放射变换的目的?

1—what kind of context it is?

2—behavior to match the expectations of the context.

to match the behavior for a context provided by UIKit

行为匹配由UIKit提供的上下文

Some technologies set up their graphics contexts using a different default coordinate system than the one used by Quartz.

PDF graphics context----不提供匹配

只知道有些是不提供匹配的

It is up to your application to adjust any Quartz calls it makes to a context that has a transform applied to it. For example, if you want an image or PDF to draw correctly into a graphics context, your application may need to temporarily adjust the CTM of the graphics context. In iOS, if you use a UIImage object to wrap a CGImage object you create, you do not need to modify the CTM. The UIImage object automatically compensates for the modified coordinate system applied by UIKit.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 生命中,总有一段回忆起来感动自己的时光,无关阴晴,无关风月,却只因为那一个人的出现,惊艳了整个盛夏,连时光都变得特...
    冬白love阅读 1,710评论 5 11
  • 那个春天的夜晚,樱花园的香气弥漫了整个校园,月光也显得格外皎洁。那个男孩鼓起十足的勇气,抱着那封不知道被自己改过多...
    989bfd732fe3阅读 264评论 0 3
  • 入行室内设计都几年了,偶尔都会买些关于室内设计的书来看看,前段时间就买了这本《室内设计制图讲座》,因为没时间(...
    日青格格阅读 1,629评论 0 7
  • 时间的年轮转了一圈 又一次来到了这个一年前来过的地方 放弃了所有的一切 我最爱的亲人 还有那一份内心渴望许久已得到...
    理解背后的深意阅读 208评论 1 1

友情链接更多精彩内容