码迷,mamicode.com
首页 >  
搜索关键字:ios图片    ( 212个结果
iOS 图片9切
UIImageView *svRect; UIImage *backgroundImage = [UIImage imageNamed:@"bg.png"]; backgroundImage = [backgroundImage resizableImageWithCapInsets:...
分类:移动开发   时间:2014-11-26 16:17:21    阅读次数:158
iOS 图片 的 聊天气泡显示 Objective-C 和 Swift
如何实现聊天软件的图片显示的剪裁后的气泡呢 ? Objective-C: ? -?(void)viewDidLoad?{ ????[super?viewDidLoad]; ???? ????UIImageView?*ImageView01?=?[[UIImageView?alloc]?init]; ??...
分类:移动开发   时间:2014-11-25 09:25:32    阅读次数:239
iOS 图片 的 聊天气泡显示 Objective-C 和 Swift
如何实现聊天软件的图片显示的剪裁后的气泡呢 Objective-C:- (void)viewDidLoad { [super viewDidLoad]; UIImageView *ImageView01 = [[UIImageView alloc] init]; [ImageView01 setFrame:CGRectMake(90, 190, ...
分类:移动开发   时间:2014-11-24 22:29:37    阅读次数:295
IOS图片拉伸模式
IOS5.0之前- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight;IOS5.0CGFloat top = 25; // 顶端盖高度CGF...
分类:移动开发   时间:2014-11-24 11:38:10    阅读次数:188
iPhone/iOS图片相关(读取、保存、绘制、其它相关)
http://blog.csdn.net/jerryvon/article/details/752614720:50:42一.读取图片1.从资源(resource)读取[cpp]view plaincopyprint?UIImage*image=[UIImageimageNamed:@"1.jpg"...
分类:移动开发   时间:2014-11-23 21:36:38    阅读次数:285
iOS:通过URL构件UIImage
很多时候我们只能得到一个URL,然后需要构建一个UIImage。 通常情况下,我们一般都是通过SDWebImage来直接构建UIImageVIew的image,如何用URL直接构建UIImage呢? 如下转换: NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:urlStr]]; button.backgro...
分类:移动开发   时间:2014-11-18 13:31:30    阅读次数:164
博主教你制作类似9patch效果的iOS图片拉伸
下面张图片,本来是设计来做按钮背景的: button.png,尺寸为:24x60现在我们把它用作为按钮背景,按钮尺寸是150x50:C代码 //得到view的尺寸CGSizeviewSize=self.view.bounds.size;//初始化按钮UIButton*button=[[UIButto...
分类:移动开发   时间:2014-11-12 14:56:02    阅读次数:269
[转]常用iOS图片处理方法
自:http://blog.sina.com.cn/s/blog_8988732e0100xcx1.html==========(one) UIImage 图像 等比例缩放==================================PicAfterZoomWidth:缩放后图片宽 PicAf...
分类:移动开发   时间:2014-11-08 23:21:15    阅读次数:324
iOS 图片合并 及截图
两张图片合并-(UIImage*)addImage:(UIImage*)p_w_picpath1toImage:(UIImage*)p_w_picpath2{UIGraphicsBeginImageContext(p_w_picpath2.size);//Drawp_w_picpath2[p_w_picpath2drawInRect:CGRectMake(0,0,p_w_picpath2.size.width,p_w_picpath2.size.height)];//Drawp_w_picpath..
分类:移动开发   时间:2014-10-21 15:43:09    阅读次数:154
iOS - 图片合成
1 - (UIImage *)addImage:(UIImage *)image1 withImage:(UIImage *)image2 rect1:(CGRect)rect1 rect2:(CGRect)rect2 { 2 CGSize size = CGSizeMake(rect1....
分类:移动开发   时间:2014-10-19 18:30:56    阅读次数:204
212条   上一页 1 ... 17 18 19 20 21 22 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!