伙计们!我需要将一些图像绘制到CGContext.这是相关的代码:
CGContextSaveGState(UIGraphicsGetCurrentContext());
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGRect rect = r;
CGContextRotateCTM(ctx, DEGREES_TO_RADIANS(350));
[image drawInRect:r];
CGContextRestoreGState(UIGraphicsGetCurrentContext());
Run Code Online (Sandbox Code Playgroud)
实际上,矩形是旋转并显示在一个不是我的目的的区域.我只想旋转图像并显示在同一位置.有任何想法吗 ?????