Iphone Sdk 将 2 张图像重叠为一张
我有 2 个图像..如何重叠它们以便获得 1 个 UIImage?将图像 2 的位置设置在图像 1 的 X、Y 处
谢谢!
I have 2 images.. How can i overlap them so i can get 1 UIImage? Setting the position of image 2 inside image 1 at X, Y
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Zapacila,您找到问题的答案了吗?你可以这样做:
UIImageoverlapedImage 是一个新图像,其中包含重叠的初始图像。老实说,我不知道这是否是实现这一结果的最佳方法,但我知道它绝对有效。
如果同时您找到了更有效的解决方案,请告诉我!
Zapacila, have you found an answer to your question? You could do it like this:
The UIImage overlappedImage is a new image which contains the initial ones, overlapped. To be honest, I don't know if this is the best method to achieve this result, but I know it definitely works.
If in the meantime you found a more efficient solution, let me know!
为什么不直接有一个 UIView 并将两个图像作为子视图放入其中?
Why don't you just have a UIView and put the two images into that as subviews?