Every similar question I've seen relates to merging UIImage
s by placing one image on top of the other. Instead, I'd like the images to be adjacent to each other. I have a rectangle image and a triangle image and I'd like to make a new image with the square on top and the triangle beneath it.
--------
| |
| |
--------
PLUS
--
\/
EQUALS
--------
| |
| |
--- ---
\/
I don't want :
--------
| -- |
| \/ |
--------
因此,创建一个合并图像大小的图像上下文,并使用drawInRect将图像渲染到其中。
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.