iOS 拉伸图片
来源:互联网 发布:适合les质量好淘宝店 编辑:程序博客网 时间:2024/06/10 04:47
iOS 拉伸图片方法
/** * 拉伸中间 */+ (UIImage *)resizedImageWithName:(NSString *)name{ UIImage *image = [self imageWithNamed:name]; return [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];}/** * 按照某一位置拉伸 */+ (UIImage *)resizedImageWithName:(UIImage *)image left:(CGFloat)left top:(CGFloat)top{// UIImage *image = [self imageWithNamed:name]; return [image stretchableImageWithLeftCapWidth:image.size.width * left topCapHeight:image.size.height * top];}
0 0
- IOS图片拉伸
- iOS图片拉伸
- iOS图片拉伸技巧
- ios图片拉伸
- iOS 图片拉伸
- iOS图片拉伸技巧
- iOS图片拉伸技巧
- IOS图片拉伸技巧
- iOS图片拉伸技巧
- IOS图片拉伸技巧
- ios图片拉伸
- iOS图片拉伸技巧
- iOS图片拉伸技巧
- iOS图片拉伸技巧
- iOS图片拉伸技巧
- iOS图片拉伸技巧
- IOS 拉伸图片
- iOS图片拉伸技巧
- 统计问题
- Java内存结构
- leetcode_86_Partition List
- 杭电1005
- 利用posix_fadvise清理系统中的文件缓存
- iOS 拉伸图片
- leetcode_2_Add Two Numbers
- hdu 2059 龟兔赛跑(DP)
- kindeditor4.1.10在线HTML编辑器,论坛编辑器
- AC自动机题集
- jsp问题(仅仅是菜鸟级别的个人学习小结)
- leetcode_148_Sort List
- 杭电1004
- Java泛型文章