Overlapping UIImage with another image [duplicate] - iphone

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to implement alpha gradient on a image?
I have 2 images below
With these 2 images I want to create following effect. Any technique you think to mask these images to create required effect.

You could use a gradient mask to create something like this, but you wouldn't get the gloss and shadows that you see in your final image:

Related

invert colors of Image [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
UIImage color changing?
I have one image with Grey and white color.I want to change Grey color to white and change white color to Grey through code dynamically. Please help.
Better to look out for Open CV framework, because the thing which you are expecting in already available with this framework.
You can get the source from here
Sample Code : Convert RGB to Black & White in OpenCV
Convert image document to black and white with OpenCV
Hope that would give you some new idea about image processing. :)

Zooming lens functionality over UIImage [duplicate]

This question already has an answer here:
How can i apply lens effect to my UIImage?
(1 answer)
Closed 9 years ago.
I am working on an application that has an image and I want a lens (circular shape) that I can move over the image and the area comes under the circular lens will zoom.
Please provide some idea. This functionality is implemented in the app named PimpleEraser in AppStore.
This is a great tutorial on exactly what you want, a sort of magnifying glass.

How to implement eraser functionality in DrawingApp? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How do I implement a soft eraser stroke in a CGBitmapContext
How can I erase UIBezierPath lines drawn on a transparent view above an image?
In my Drawing app I want to implement Eraser Functionality.
If I have a white Background I will be erase that with change the color to white.
But, do I do if I have to erase the drawing on Background with photo?
How can I do that?
I believe that there are many possible solutions. One of them:
you create two layers (two images). One for the background, another for the drawn stuff.
when you "erase" you draw something. This something must mask background and
masked result must be drawn on the "stuff" layer.
Also you can play with masks, with blending options — I think every one of this features will allow you to implement "eraser" functionality.

Draw an arc on circle [duplicate]

This question already has answers here:
Draw part of a circle
(8 answers)
Closed 9 years ago.
I am developing an application in which I have to show a filled arc on my circle which will indicate the selected time.
I have attached an image for specifying what I exactly want to ask:-
Please help me in how to draw arc on circle.
Any suggestions will be highly appreciated.
you need something like this

UIKit. How to set Transparent color? [duplicate]

This question already has answers here:
How to make one color transparent on a UIImage?
(11 answers)
Closed 7 years ago.
Is there any way to set any color of UIImage (or it CALayer content) as transparent color?
I cannot use single image resource(PNG file) with built-in transparency.
I need to hide some area from first Layer by overlaying second Layer with specific color at that place. So I need to set this specific color as "transparent color" before assembled image drawing.
Image area I need to hide is like background - i.e. specific color will be started from image borders through whole perimeter.
Sounds like you need to use CGImageCreateWithMaskingColors. I recommend reading the "Bitmap Images and Image Masks" part of the Quartz Programming Guide, and check some example code. It's slightly more low-level than your average Cocoa code, but not very hard to accomplish.