tags:

views:

32

answers:

1

Hi All,

I have two UIImage objects as follow:

image1:

alt text

image2:

alt text

I wish to combine the two images via code so I can get the following image:

alt text

My graphics skills in iPhone are really poor... so any sample code will be greatly appreciated.

Thanks! Josh

+1  A: 

I guess you are looking at applying a mask to an image, so take a look here, hope it helps

rano
Great, this is really helpful. Since my image1 is more than just a mask (say, I wish special decorating the frame) how would you recommend doing that?
Joshua
I'm not so skillful in images too, so I can't help you that much. What I can think of is that you add another image with the decoration, apply the mask to it too and then put it as a top layer on the other
rano
@Joshua if the answer helped consider to make check it as the correct one to improve your acceptance rate
rano
Of course! Thanks for your help
Joshua