在图像视图上应用旋转后图像变得模糊不清并拧紧 [英] image coming blurred and screwed after applying rotation on image view

查看:138
本文介绍了在图像视图上应用旋转后图像变得模糊不清并拧紧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我陷入一个奇怪的问题, 我有一个图像视图,该视图必须以大约5度的角度显示.为此,我将UIImageView旋转到5度,但是UIImageView中的图像不像转换前那样正确.

I am stuck with a strange problem that, I have a image view which has to shown at some angle approx 5 degree.For that I rotate my UIImageView to 5 degree but the image in UIImageView not coming proper as it was before transformation.

要了解更多信息,请参见图片

For more understanding see images

您可以看到第二张图像看起来像是从角落剪掉的,并且看起来也有些模糊.

You can see the second image is looking like clipped from corners and looks some blur also.

我的旋转代码:-

myimageView.transform = CGAffineTransformMakeRotation(radians(5));

请建议我如何解决此问题.

Please suggest me how to solve this problem.

谢谢.

推荐答案

您是否尝试过使用CGContextRotateCTM(context, radians);[sourceImage drawInRect:rect];?

这篇关于在图像视图上应用旋转后图像变得模糊不清并拧紧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆