can anybody suggest me how can I achieve this
1) in camera mode I 'll add an overlay (this part is achievable)
2) only the image inside that overlay should be captured
please refer this pic
only the part of image in yellow section of sample image should be captured.
Please help me on this I am pretty new to this
Regards
Ankit
You can simply capture the entire image, apply a mask to throw out what you don't want, and save/use the resulting image.
To apply a mask, have a look at http://iosdevelopertips.com/cocoa/how-to-mask-an-image.html.
Related
Is there any way to mask the some image into particular portion of the another image.
I have an image like this :-
Image 1
and I want to mask the another image 2 into the black area of the image 1.
IS it possible.If yes then please tell me how is it possible.
I know i can mask the image like :-This But i will alow me to mask the whole image.I want to mask the image into particular portion of the image.
Thanks in advance
I know how to blur a whole image, but I just want to blur a part of the image like the face. Answers are appreciated. Thanks!
Just to close this thread, I used both #Anshu's and #Michael's suggestions. Here are my steps:
Crop the part the image that needs blurred.
Use UIImage+Stack to blur the cropped image.
Place the blurred image on top of the original image.
Combine the two images together to one new image.
This should get you started: https://github.com/tomsoft1/StackBluriOS ?
You could look inside the UIImage+Stack implementation and use what you find there to make a version of this method that blurs a specific section of your image.
Something like:
- (UIImage*) stackBlur:(NSUInteger)inradius insideRect:(NSRect)rect;
Hint: the code from line #166 is where the blur class starts looping over the image pixels and blurring them.
I am creating an application in which i am displaying image view with image and processing brightness on the image using slider. I want that brightness should be done only on the selected part of image and not on the entire image.
I want the brightness should be processed only on the central part of the image without using openGl Image processing.
Please help me to solve this problem. Hey guys Please help me its important for me.
There are several ways to accomplish this. One is to overide the drawRect: UIView method and use a mask. Another is to draw the bitmap yourself in a CGContext. Yet another is with OpenGL.
What have you tried?
I am working on module where I need to perform following activities.
Select image from Library.
Show that image.
Zoom that image.
Save the Zoomed portion or visible portion on the view.so that final image will get saved with zoomed.
I have covered 1,2,3 and struggling with 4
Does anyone have idea about this?
Thanks,
Sagar
If I understand you correctly, you want to save image that appears on the screen after zooming? To do that you can use CGImageCreateWithImageInRect function.
I need your help to know how to create an iPhone application to show a photo with SCRATCH OUT EFFECT.
Something like the effect in this flash tutorial
http://www.tutorial5.com/content/view/115/46/
Please help.
Thanks.
You can have a look at the following post on how to create a blurred image effect, I don't think it's the best & fasted method, but it might get you started:
UIImage blur
You can implement the scratch out effect by using CoreGraphics.
Subclass UIView for the scratchable image.
Draw the scratchable image, use a mask to cut out the parts of the image that gets "scratched".
Each time the user scratches the image, make it so the mask and the image gets updated.
Full code example on github