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
Related
In image app i have to blur the selected areas of image. Something like create mosaic at selected area of image. i have to get each pixel color of selected area and then increase the size of each pixel. here is the reference link that i am using http://soulwithmobiletechnology.blogspot.in/2011/05/create-mosaic-with-your-image-part-1.html . But not able to implement this practically for selected area. Can any one have some sample for the same.
There are two solutions for this
1. Get the screen shot of the area where you want the mosaic effect and apply effect to the same portion. Then add the image(with mosaic effect) to the original image.
2.Get the pixel of the area you want to be effected and then gave effect to those pixels.*
I want to blur part of a image. I could blur the full image blurred using CIFilter ("CIGaussianBlur") but not a part of it.
For example: I want to blur the image in a small circular or square shape wherever the user taps the image.
How can I do that?
You know how to blur a whole image so you can draw the touched part of the image into a new image, blur that, and then draw it over the original at the touched point.
There are several approaches. One would be to create a CIImage greyscale mask image with the shape you want, a blurred CIImage (using CIGaussianBlur), and then use CIBlendWithMask to blend them together.
The inputs of CIBlendWithMask are the input image (the blurred image), the input background image (the unblurred image), and the mask image (the shape you want). The output is the image you desire.
Currently i am working on Iphone app similar to http://itunes.apple.com/us/app/color-splash-free/id385504846?mt=8 in which we can make some or full portion of pic as black and white.
Please check the attach image for more detail.
I just want to know that how i can start it.I am familiar with paint app.Is this any rgb Value of any color or Its gray scale overlapping of an image with actual image at background or hide some portion of actual image and show grayscale image in that part.
Please share any code if you have that.
Thank you
Can't offer a concrete answer but a general approach from doing something similar.
What you have in 32 bit image is 4 channels of pixel information: red pixels, green pixels, blue pixels and alpha value for each pixel.
A gray image as you know from using any paint program is when all three colour components red, green and blue have equal intensity value.
E.g.
rgb value of (0.5,0.5,0.5) would be halfway between black and white.
What I can suggest is you looking into finding where the user tap the screen, take rectangular sample of pixels from the touch point into memory loop through all the sample pixels and set their red, green and blue value to be equal, then redraw the newly modified image onto the view again.
If you want to quickly convert an entire image to grayscale, you can use GPUImageFramework by Brad Larson? (apologies if I misspelled your name Brad :P).
You can use his GrayScaleFilter class to generate a grayscale image.
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.
I have a image in rectangle shape but i want to crop this image in a star shape in my iphone application. so please can any one suggest how i do this? plz suggest. thanks
See the comment to a related question on how to mask an image. The magical part is CGContextClipToMask.