摘要:
http://www.cnblogs.com/delonchen/archive/2011/06/12/CGContextDrawImage.html这个函数绘制图片,但坐标系统原点在左上角,y方向向下的(坐标系A),但在Quartz中坐标系原点在左下角,y方向向上的(坐标系B)。图片绘制也是颠倒的。要达到预想的效果必须变换坐标系,代码如下:void drawImage(CGContextRef context, CGImageRef image , CGRect rect){ CGContextSaveGState(context); CGContextTranslateCTM(co... 阅读全文
posted @ 2012-04-25 19:52
pengyingh
阅读(3377)
评论(0)
推荐(0)


浙公网安备 33010602011771号