UIImage *image = [UIImage imageNamed:@"qq"];

第一种:

 // 左端盖宽度
NSInteger leftCapWidth = image.size.width * 0.5f;
// 顶端盖高度
NSInteger topCapHeight = image.size.height * 0.5f;
// 重新赋值
image = [image stretchableImageWithLeftCapWidth:leftCapWidth topCapHeight:topCapHeight];

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT0AAACACAIAAAD22inVAAAKv2lDQ1BJQ0MgUHJvZmlsZQAASA2tl3dUk8kWwO/3pTdaIAJSQm+CFOnSayiCdLARkkBCiSEQVMTO4gquBRERsCErIgquBZC1IBYsLIK9L8iioj4XdbGh8r7Akt3z3tv/3j1nZn65c+fOnfnunHMDQD/JlUgyURWALHGuNCrIl52QmMQm/QoI4IECKDhweTkSn8jIMPhHeX8bs8bkhrXc1z+a/e8JVb4ghweARGLTKfwcXhbGx7BWy5NIcwFwCZjeaFGuRM4FGKtLsQAx3iTntAmulXPKBLeO28RE+WE2XQBkOpcrTQOg3cX07DxeGuaH9hFjWzFfJAagm2PsyRNy+RgLMZ6WlbVQzmUYm6f8zU/a35jLTVH45HLTFDxxFmwltrG/KEeSyV0y/uP/2WVlyrD7GhcDrKcLpcFR2EjG7qw6Y2GogsUpsyIm9SLsRJMslAXHTjIvxw+7y4m1fK5/6CTLMmJ9JpkrxehPG1EuJ2aSpQujFP7FmbPk+TEeg1DAUbAgJyB6Up8qCuRMcr4wJn6S80RxsyY5JyNaEUO+0E+hl8qiFDGnSgMVZ8zKwVb+uS+P+9deucKY4Ek9X+AfMMkCcawiHkmur8KPJHM8v8fjF2QGKfQ5edGKtbnSGIU+nRsiz9dxe0lupOJOQAThwAVermAxlmcAfgslS6SiNGEu2wd7GQI2R8yzmca2t7VzBJC/M7kNwDvW+PtBWFf+0mW3A7gWY99UnuJsuRUA1wjgxFMA5vu/dEZvsRTA3sKpHp5Mmjdhh5cPBKCCMqiDFuiBEZiDNdiDE7iDNwRACERADCTCfOCBELJACougAFZBEZTAJtgKlbAL9sJ+OARHoAVO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+5479jVw96vbgfnI7YQxwG0uXVcwLw40YXsgbJQPvO5q5qzHf+7k9ZXRMBIInAOG1InEPvv63cbJ57L43ft13t8uLPw7nxHjOSckc3HWyCW4gEc+q8MuPiTw+hk7tQ/gcvZpum4mGlbrxtAHXvTgWU1s5ob9EoMcJuJJsvJoH7e+QHz7Bmb0XzrQfN//Fe/urFd4rczvAnvzK4dEXiAARCJ4A6TZ4xhQDEfCbAOnWb6IUHhEIngDpNnjGFAMR8JsA6dZvohQeEQieAOk2eMYUAxHwmwDp1m+iFB4RCJ4A6TZ4xhQDEfCbAOnWb6IUHhEIngDpNnjGFAMR8JsA6dZvohQeEQieAOk2eMYUAxHwm8D/A71YxGq8GZ2PAAAAAElFTkSuQmCC" alt="" />

第二种:

    CGFloat top = ; // 顶端盖高度
CGFloat bottom = ; // 底端盖高度
CGFloat left = ; // 左端盖宽度
CGFloat right = ; // 右端盖宽度
UIEdgeInsets insets = UIEdgeInsetsMake(top, left, bottom, right);
// 指定为拉伸模式,伸缩后重新赋值
image = [image resizableImageWithCapInsets:insets resizingMode:UIImageResizingModeStretch];

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAAB7CAIAAABmTasxAAAKv2lDQ1BJQ0MgUHJvZmlsZQAASA2tl3dUk8kWwO/3pTdaIAJSQm+CFOnSayiCdLARkkBCiSEQVMTO4gquBRERsCErIgquBZC1IBYsLIK9L8iioj4XdbGh8r7Akt3z3tv/3j1nZn65c+fOnfnunHMDQD/JlUgyURWALHGuNCrIl52QmMQm/QoI4IECKDhweTkSn8jIMPhHeX8bs8bkhrXc1z+a/e8JVb4ghweARGLTKfwcXhbGx7BWy5NIcwFwCZjeaFGuRM4FGKtLsQAx3iTntAmulXPKBLeO28RE+WE2XQBkOpcrTQOg3cX07DxeGuaH9hFjWzFfJAagm2PsyRNy+RgLMZ6WlbVQzmUYm6f8zU/a35jLTVH45HLTFDxxFmwltrG/KEeSyV0y/uP/2WVlyrD7GhcDrKcLpcFR2EjG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y8CEJHwYlqhrNhIY0kb4GRQie+s5X/1Senz9SKexqdyGR6XtB3qSoY7clLGJD2R4Z4ljZj8JMmASbAgORZIq0UKAnILGPJK8Cgy2XK4K5yV0Ze3EqfyzQ0xbRoAmxHArJsMATYjiknl4TICxmyuk4uLUU5ur+Tmi974ArYH3elI26GuzdZpckGQaYEMA+R2kWxjgeRDYSaLD6SVlRbstVlCJFeDHBBEZCcwn5/eM+iKIjCdCIj0EZVWEuh1s+HlZGh5k66I8RnJW0QyUE9SgpKuSHJr+Q6+wZIB0+TuGVchfhees5D23SvoL0VAEfigCIzo8vmgz6I3UwQUgTEQUNKOAZIeoggkCQElbZJKQ59FERgDASXtGCDpIYpAkhBQ0iapNPRZFIExEFDSjgGSHqIIJAkBJW2SSkOfRREYAwEl7Rgg6SGKQJIQ+H9LKAWkYESzdwAAAABJRU5ErkJggg==" alt="" />

补:UIButton加载图片:

 [button setBackgroundImage:image forState:UIControlStateNormal];

原图:aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM4AAADGCAIAAAAVLij+AAAKv2lDQ1BJQ0MgUHJvZmlsZQAASA2tl3dUk8kWwO/3pTdaIAJSQm+CFOnSayiCdLARkkBCiSEQVMTO4gquBRERsCErIgquBZC1IBYsLIK9L8iioj4XdbGh8r7Akt3z3tv/3j1nZn65c+fOnfnunHMDQD/JlUgyURWALHGuNCrIl52QmMQm/QoI4IECKDhweTkSn8jIMPhHeX8bs8bkhrXc1z+a/e8JVb4ghweARGLTKfwcXhbGx7BWy5NIcwFwCZjeaFGuRM4FGKtLsQAx3iTntAmulXPKBLeO28RE+WE2XQBkOpcrTQOg3cX07DxeGuaH9hFjWzFfJAagm2PsyRNy+RgLMZ6WlbVQzmUYm6f8zU/a35jLTVH45HLTFDxxFmwltrG/KEeSyV0y/uP/2WVlyrD7GhcDrKcLpcFR2EjG7qw6Y2GogsUpsyIm9SLsRJMslAXHTjIvxw+7y4m1fK5/6CTLMmJ9JpkrxehPG1EuJ2aSpQuj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XHteF431hicDLhD3GT+h0StXZ1k0vdXa/t8GKf0yOD2uLdFoykp8LJ8bnUZDg1MZuEpWyy+oHlCCql0mVWOU0qj1nlMKrggZ2EAvRQIyErG5mrAI0bItduPkNOAUaNnMuoGsyoUfUcObsZNXIuo2owo0bVc+TsZtTIuYyqwYwaVc+Rs5tRI+cyqgYzalQ9R85uRo2cy6gazKhR9Rw5uxk1ci6jajCjRtVz5Oxm1Mi5jKrBjBpVz5Gzm1Ej5zKqBjNqVD1Hzm5GjZzLqBrMqFH1HDm7GTVyLqNqMKNG1XPk7GbUyLmMqsGMGlXPkbObUSPnMqoGM2pUPUfObkaNnMuoGsyoUfUcObsZNXIuo2owo0bVc+TsZtTIuYyqwYwaVc+Rs5tRI+cyqgYzalQ9R85uRo2cy6gazKhR9Rw5uxk1ci6jajCjRtVz5Oxm1Mi5jKrBjBpVz5Gzm1Ej5zKqBjNqVD1Hzu7/A8UL48zOruHCAAAAAElFTkSuQmCC" alt="" />

ios图片拉伸两种方法的更多相关文章

  1. UIImage加载图片的两种方法区别

    Apple官方的文档为生成一个UIImage对象提供了两种方法加载图片: 1. imageNamed,其参数为图片的名字: 2. imageWithContentsOfFile,其参数也是图片文件的路 ...

  2. AE 将地图导出为图片的两种方法

    在ArcGIS的开发中,我们经常需要将当前地图打印(或是转出)到图片文件中.将Map或Layout中的图象转出有两种方法,一种为通过IActiveView的OutPut函数,另外一种是通过IExpor ...

  3. input上传图片(file),预览图片的两种方法。blob与base64编码

    上传图片时一般都需要预览,我一般用这两种方法来实现.base64编码可以直接上传到后台,后台解析下,得到的文件就会比较小了,省去了压缩图片这一步了. //获取对象input file 的图片地址,放进 ...

  4. VC下加载JPG/GIF/PNG图片的两种方法

    转载自:http://blog.sina.com.cn/s/blog_6582aa410100huil.html 仅管VC有提供相应的API和类来操作bmp位图.图标和(增强)元文件,但却不支持jpg ...

  5. python 读取并显示图片的两种方法

    在 python 中除了用 opencv,也可以用 matplotlib 和 PIL 这两个库操作图片.本人偏爱 matpoltlib,因为它的语法更像 matlab. 一.matplotlib 1. ...

  6. ios 图片的两种加载方式

    控件加载图片,plist,懒加载,序列帧动画,添加动画效果. IOS中有2种加载图片的方式. 方式一:有缓存(图片所占用的内存会一直停留在程序中) + (UIImage *)imageNamed:(N ...

  7. python实现读取并显示图片的两种方法

    https://www.cnblogs.com/lantingg/p/9259840.html 在 python 中除了用 opencv,也可以用 matplotlib 和 PIL 这两个库操作图片. ...

  8. android 图片叠加效果——两种方法

    效果图: 第一种: 第二种: 第一种是通过canvas画出来的效果: public void first(View v) { // 防止出现Immutable bitmap passed to Can ...

  9. android 图片叠加效果——两种方法的简介与内容 ,带解决Immutable bitmap passed to Canvas constructor错误

    第一种是通过canvas画出来的效果: public void first(View v) { // 防止出现Immutable bitmap passed to Canvas constructor ...

随机推荐

  1. 通过FileWatcher,监听通过web上传的图片,并进行压缩

    需求是这样的,通过web传输过来的图片,无论是JS上传,还是其他的上传方式,都需要生成2张缩略图,分别是用于商品列表的小图small,和用于分享的小图share.基于不同上传方式的不同需求,使用exe ...

  2. C#和ASP.Net面试题目集锦

    1.有哪几种方法可以实现一个类存取另外一个类的成员函数及属性,并请举列来加以说明和分析.2.A类是B类的基类,并且都有自己的构造,析构函数,请举例证明B类从实例化到消亡过程中构造,析构函数的执行过程. ...

  3. 在ASP.NET中实现OAuth2.0(一)之了解OAuth

    1.什么是OAuth2.0 是一个开放授权标准,允许用户让第三方应用访问该用户在某一个网站或平台上的私密资源(如照片.视频.联系人等),而无须将用户名和密码提供给第三方应用 2.OAuth2.0授权模 ...

  4. django概述

    一.django的特点 1.提供一体化的web解决方案,什么叫一体化:mvc 2.等你玩儿牛逼了可以拔插组件,换成自己顺手或者更牛逼的组件

  5. Qt 窗口等设置

    摘要: -------------------------------------------------- qt固定窗口大小: 一种方法是设置它的最大大小和最小大小,并且使它们的值相等,都等于当前你 ...

  6. STL之multiset

    参见http://www.cplusplus.com/reference/set/multiset/ template < class T,                            ...

  7. js之Function原型

    在ECMAScript中,Function(函数)类型实际上是对象.每个函数都是Function类型的实例,而且都与其他引用类型一样具有属性和方法.由于函数是对象,因此函数名实际上也是一个指向函数对象 ...

  8. 随堂作业——到底有几个“1”(C++)

    一.设计思路 在课堂上讨论的时候,老师提出的思路是利用之前的结果计算出比它更大的数字的“1”.但是我不是这么想的,我是把输入的正整数每位上的数都分解出来计算.如abc,就先算c,再加上b,最后再加上a ...

  9. 【Exception】 java.lang.NoSuchMethodError: android.app.AlertDialog$Builder.setOnDismissListener

    f(Build.VERSION.SDK_INT >10) builder =newAlertDialog.Builder(getActivity(), R.style.Theme.Sherloc ...

  10. FushionCharts Free 的运用[2D/3D图表处理]

    由于先前在一些论坛中谈论到这个插件的运用,留了一些QQ联系方式,最近老是被一些程序员“骚扰”,说是请教一些关于FushionChart Free图表的处理技术,先前还是比较乐意接受的,但发现后来一些完 ...