简体   繁体   English

如何将相框添加到UIImage?

[英]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. 我正在使用iphone应用程序,在该应用程序中我想向图像添加其他帧(例如,黑色粗砂,旧时等),并使用该帧保存该图像。

Is it possible in iphone application. 是否可以在iPhone应用程序中使用。 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];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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