UIImage图片处理
文章平均质量分 69
iAdaChoi
这个作者很懒,什么都没留下…
展开
-
iOS图片拉伸技巧的三种方式
button.png,尺寸为:24x60 现在我们把它用作为按钮背景,按钮尺寸是150x50: [java] view plaincopy // 得到view的尺寸 CGSize viewSize = self.view.bounds.size; // 初始化按钮 UIButton *button = [[UIButt转载 2015-10-30 16:41:04 · 412 阅读 · 0 评论 -
截取当前界面图片
清晰版: UIGraphicsBeginImageContextWithOptions(bgView.bounds.size, NO, 0.0); CGContextRef context = UIGraphicsGetCurrentContext(); [bgView.layer renderInContext:context]; UIImage *im原创 2016-05-19 14:05:32 · 505 阅读 · 0 评论