UIImage(ADKColorReplacement) Category Reference

Declared in UIImage+ADKColorReplacement.h
UIImage+ADKColorReplacement.m

+ ADKImage:tintColor:

Mix specific color with image instance.

+ (UIImage *)ADKImage:(UIImage *)image tintColor:(UIColor *)color

Parameters

image

The image instace want to process.

color

The color will affect image result.

Return Value

The instance of result UIImage.

Declared In

UIImage+ADKColorReplacement.h

+ ADKImage:replaceColor:

Replace opacity pixel with specific color in image instance.

+ (UIImage *)ADKImage:(UIImage *)image replaceColor:(UIColor *)color

Parameters

image

The image instace want to process.

color

The color will affect image result.

Return Value

The instance of result UIImage.

Declared In

UIImage+ADKColorReplacement.h

+ ADKImage:replaceColor:withColor:

Replace specific color with another color in image instance.

+ (UIImage *)ADKImage:(UIImage *)image replaceColor:(UIColor *)fromColor withColor:(UIColor *)toColor

Parameters

image

The image instace want to process.

fromColor

The original color need be replaced.

toColor

The color will replace original color.

Return Value

The instance of result UIImage.

Declared In

UIImage+ADKColorReplacement.h

+ ADKImageNamed:tintColor:

Mix specific color with image name.

+ (UIImage *)ADKImageNamed:(NSString *)name tintColor:(UIColor *)color

Parameters

name

The image name want to process.

color

The color will affect image result.

Return Value

The instance of result UIImage.

Declared In

UIImage+ADKColorReplacement.h

+ ADKImageNamed:replaceColor:

Replace opacity pixel with specific color in image name.

+ (UIImage *)ADKImageNamed:(NSString *)name replaceColor:(UIColor *)color

Parameters

name

The image name want to process.

color

The color will affect image result.

Return Value

The instance of result UIImage.

Declared In

UIImage+ADKColorReplacement.h

+ ADKImageNamed:replaceColor:withColor:

Replace specific color with another color in image name.

+ (UIImage *)ADKImageNamed:(NSString *)name replaceColor:(UIColor *)fromColor withColor:(UIColor *)toColor

Parameters

name

The image name want to process.

fromColor

The original color need be replaced.

toColor

The color will replace original color.

Return Value

The instance of result UIImage.

Declared In

UIImage+ADKColorReplacement.h

+ ADKImageWithColor:size:

Overlap specific color on image instance.

+ (UIImage *)ADKImageWithColor:(UIColor *)color size:(CGSize)size

Parameters

color

The color will affect image result.

size

The expected final result image size.

Return Value

The instance of result UIImage.

Declared In

UIImage+ADKColorReplacement.h

+ ADKImage:colorWithAlphaComponent:

Change image instance’s alpha value.

+ (UIImage *)ADKImage:(UIImage *)image colorWithAlphaComponent:(CGFloat)alpha

Parameters

image

The image instace want to process.

alpha

The expected alpha value for result image.

Return Value

The instance of result UIImage.

Declared In

UIImage+ADKColorReplacement.h