简体   繁体   中英

How can I add a picture frame to an UIImage?

I am working on an iphone application where I want to add a different frame(eg black grit, oldtime, etc) to an image and save that image with that frame.

Is it possible in iphone application. Please give me suggestion.Thanks.

在此处输入图片说明

Check this question .

You need to implement following code:

#import <QuartzCore/QuartzCore.h>

[imageView.layer setBorderColor: [[UIColor blackColor] CGColor]];
[imageView.layer setBorderWidth: 2.0];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM