Skip to content

rbreve/iOS-Image-Filters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

About

A simplified UIImage category for using Core Image Filters. To accomplish vintage or double exposure effects I am using blend modes using two images.

Vintage

vintage

Vignette

p1

Double Exposure using Blend Modes

p2

Black & White

p3

How to use on your project

  • Drag UIImage+Filters.h and UIImage+Filters.m to your project
  • Include the header file #import "UIImage+Filters.h"
  • Be sure to include the CoreImage.framework on your project
  • To apply a filter to an UIImage just to this

Sample Code

UIImage* myImage  = [UIImage imageNamed:@"myphoto.jpg"];
myImage = [myImage saturateImage:0 withContrast:1.05];

Current Filters

- (UIImage*) saturateImage:(float)saturationAmount withContrast:(float)contrastAmount;
- (UIImage*) vignetteWithRadius:(float)inputRadius andIntensity:(float)inputIntensity;
- (UIImage*) blendMode:(NSString *)blendMode withImageNamed:(NSString *) imageName;
- (UIImage*) curveFilter;

Blend Mode

- (UIImage*) blendMode:(NSString *)blendMode withImageNamed:(NSString *) imageName;

Will use imageName as a background layer to blendit into your image.

Available blend modes you can use are:

  • CISoftLightBlendMode
  • CIMultiplyBlendMode
  • CISaturationBlendMode
  • CIScreenBlendMode
  • CIMultiplyCompositing
  • CIHardLightBlendMode

Apple Documentation

Core Image Filter Reference

About

iOS Image Filters like instagram using Core Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •