将图像拉伸到更大尺寸而不干扰 iPhone 中的像素
我有一个具有 3 个子视图的视图,并且所有三个子视图在 uiscrollviews 中都有 uimageviews 。因此图像视图可以滚动或缩放。图片相当大。
现在视图的总尺寸为 480X320,但我想捕获更大尺寸的屏幕,例如 960X640。但是当我尝试这样做时,图像会被拉伸,像素会受到干扰。
有没有办法拉伸尺寸较大但以小边框显示的图像?
谢谢 潘卡伊
I have a view which has 3 subviews and all of the three subviews have uimageviews in uiscrolviews. So the imageviews can be scrolled or zoomed. The images are pretty large.
Now the total size of the view is 480X320 but I want to capture screen in bigger sizes e.g 960X640. But when I try to do it the image is stretched with pixels getting disturbed.
Is there a way to stretch a image which is large in size but displayed in small framed?
Thanks
Pankaj
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试这个代码,它对我有用。
-(UIImage *)resizeImage:(UIImage *)图像宽度:(int)width 高度:(int)height {
}
try this code it's working for me.
-(UIImage *)resizeImage:(UIImage *)image width:(int)width height:(int)height {
}