开发者

overlap image to another image - iphone

开发者 https://www.devze.com 2023-03-11 18:51 出处:网络
I at all开发者_运维知识库, I have a question, there is a way for overlap an image to another image?overllapping 2 image and save it?

I at all开发者_运维知识库, I have a question, there is a way for overlap an image to another image?overllapping 2 image and save it? After take it from my album, how can apply this filter?


Ok, then you should easily achieve what you want like this:

imageViewOnTop .backgroundColor = [UIColor clearColor]; //This sets your backgroung to transparent. 
imageViewOnTop.opaque = NO;
[imageViewBehind addSubview:imageViewOnTop];
[imageViewOnTop release];

imageViewOnTop being your "Hat", and imageViewBehind being your "Head". NOTE: your images should have an ALPHA capable image format like PNG, so only the Hat is visible and covering your Head, not the whole imageView Rectangle . Hope its clear enough!


Oh you wanted to save your compiled image to the roll, then you should do this:

0

精彩评论

暂无评论...
验证码 换一张
取 消