Linked Questions
27 questions linked to/from How can I mask a UIImageView?
-1 votes
1 answer
195 views
iOS: how to crop an image to fill the shape of another image? [duplicate]
I would like to crop an image so its content fills another image and it removes the alpha parts. For example, I have this image as the shape I'm expecting to keep from any other image: Now if I take ...
0 votes
2 answers
101 views
Use scaled UIImageView as mask for second UIImageView [duplicate]
I have a UIImageView that is basically a partially-opaque, blue oval. I allow the user to manually scale the height and width of the oval. After the oval's frame has been set to the desired size, I ...
15 votes
2 answers
32k views
iOS Custom UIImagePickerController Camera Crop to Square
I'm trying to create a camera like Instagram where the user can see a box and the image would crop to that box. For Some reason the camera doesn't go all the way to the bottom of the screen and cuts ...
12 votes
4 answers
11k views
masking a UIImage
I'm working on an app that can change the borders or a rectangular UIImage. The borders will vary, but will look like the UIImage was cut out with scissors, or something to that affect. What is the ...
8 votes
5 answers
7k views
Particular shape image on uiimageview
Can we set below shape on image with UIImageView. Any idea! Thanks
2 votes
3 answers
4k views
How to animate a CALayer attached to UIImageView?
I am using this code proposed by Bartosz to add a mask to an UIImageView. It works fine. #import <QuartzCore/QuartzCore.h> CALayer *mask = [CALayer layer]; mask.contents = (id)[[UIImage ...
8 votes
1 answer
2k views
How to create own mask in ios
Duplicate so don't negative my reputation. My mask image is : My output is : - (UIImage*)maskImage:(UIImage *)image withMask:(UIImage *)maskImage { CGImageRef maskRef = maskImage.CGImage; ...
4 votes
1 answer
2k views
Masking and Reverse Masking in Imageview ios
I have one Imageview that contains the Image . And one Mask Shape that contains shape of rabbit. I have one code that gives the below result. - (UIImage*)mynewmaskImage:(UIImage *)image withMask:(...
1 vote
1 answer
2k views
Animate Mask in Objective C
I am making an application where I have to show 3 images in a single screen, and when User touch one image then that Image should be shown by Animating and resizing. So for 1st Step I did Masking of ...
0 votes
1 answer
1k views
UIImageView Pie Mask in Swift 2
After searching numerous sources on how to mask an image in Swift, I've found many that utilize UIImage rather than UIImageView. It's getting quite confusing because they are almost similar yet they ...
1 vote
2 answers
658 views
UIViewContentModeCenter Adds Padding
I want to display thumbnails of various size images in a UIImageView. If the image is too big to fit in the UIImageView, I want to only display the amount of the photo that fits in the UIImageView, ...
4 votes
2 answers
1k views
How to prevent clipping of UIImageView mask
I want to apply a chat bubble mask to an image view, and I would like the mask image to scale to fit in the frame of the image view. This is the code I am using to create and apply the mask: let mask ...
2 votes
2 answers
372 views
How to make a region in the centre of a UIImageView transparent
I have a UIImageView and i'd like to make a circular region in the centre of the image view transparent so that when an image is passed to the image view, the image seems to cover all of the image ...
0 votes
1 answer
753 views
Give UIImageView dark Facebook ios effect
what I was trying to do was to make a UIImageView darker so that the buttons and views on top of the image result. I wanted to give it the effect that is given when in ios6 a user shares using ...
-1 votes
1 answer
161 views
How does Mailbox get the effect of their icon and an image underneath it? [closed]
Apparently there is an image underneath another image, so is the super image (the one with the mailbox icon) just designed to be transparent in Photoshop, or Gimp, etc, or they used some other cool ...