2011-08-22 36 views

回答

1

如果您使用UIView的transform属性进行旋转或通过视图的layer旋转:您可以直接用石英的apis生成出众的效果。

您可以使用石英图像处理创建更高质量的图像,该处理可创建新图像并为转换和渲染指定高质量的抗锯齿。

该图像处理可以通过多种方式实现,如CGContextRotateCTM后跟CGContextDrawImage,然后用CGBitmapContextCreateImage访问新图像。

或者,您可能更愿意将图像直接绘制到上下文而不是创建中间图像。

+0

你可以写一个例子吗? – QuickNick

+0

尝试使用' - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)editInfo'作为起点:http://renzoverleysen.tumblr.com/post/459850033/tutorial-full-resolution -iPhone-照片应用程序 – justin