Skip to content

A category for UIImage which takes and UIImage and applies a circular path as a mask.

Notifications You must be signed in to change notification settings

engmsaleh/UIimage-RoundedImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

UIImage+RoundedImage

A category for UIImage which takes and UIImage and applies a circular path as a mask.

  • (UIImage *)roundedImageWithImage:(UIImage *)image;

EXAMPLE:

UIImage *originalImage = [UIImage imageNamed:@"myimage.png"]; UImage *myRoundedImage = [UIImage roundedImageWithImage:originalImage];

IMPORTANT NOTE:

Your image needs to have an alpha channel, or it will have black background around the circle. You can fix that behavior either in Photoshop, or by using the UIImage+Alpha category. I have it forked.

About

A category for UIImage which takes and UIImage and applies a circular path as a mask.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published