Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 2.12 KB

README.md

File metadata and controls

54 lines (36 loc) · 2.12 KB

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