使用缩放转换来取消y坐标会改变Quartz图中的一些约定。例如,如果你调用 CGContextDrawImage绘制的图像为背景,形象 通过变换修改,当它被吸入目的地。 类似地,电弧是否在默认坐标系统中的顺时针方向或逆时针方向 绘制路径绘制例程接受指定 参数。如果修改了坐标系,则结果也会被修改,就好像该图像反映在 镜像中一样。在图1-5中,传递相同的参数为石英在默认顺时针圆弧导致 y坐标由 否定变换后坐标系和 逆时针圆弧。我有问题了解“缩放转换坐标”。需要帮助
这是apple quartz2d guide关于坐标系。
他们是怎么通过这个第一行是什么意思? Using a scaling transform to negate the y-coordinate alters some conventions in Quartz drawing.
和第二线,他们给thecgcontextdrawimage
例子,是其真正的UIKit会自动修改,从左下到左上角的坐标,所以什么点吗?
,也没有明白这个最后一点,passing the same parameters into Quartz results in a clockwise arc in the default coordinate system and a counterclockwise arc after the y-coordinate is negated by the transform.
在此先感谢,问候。
lovelyyyyy :) ...非常感谢回复。 – Pamy 2012-04-09 05:27:20