Inherits from AKInnerShadowImageEffect : AKImageEffect : NSObject
Declared in AKInnerGlowImageEffect.h
AKInnerGlowImageEffect.m

Overview

The AKInnerGlowImageEffect class creates a shadow on the inside of the image. It’s like an inner shadow with no offset.

This class should probably be re-implemented to be a true inner glow, not an inner shadow. Pull requests welcome.

Tasks

Creating an Inner Glow Image Effect

Instance Methods

initWithAlpha:blendMode:color:radius:

The designated initializer for an inner glow image effect.

- (id)initWithAlpha:(CGFloat)alpha blendMode:(CGBlendMode)blendMode color:(UIColor *)color radius:(CGFloat)radius

Parameters

alpha

The value for the alpha property.

blendMode

The value for the blendMode property.

color

The color to draw the shadow.

radius

The radius for the shadow.

Return Value

An initialized image effect.

Discussion

Because image effects are immutable (for performance reasons), you’ll need to set the proper values for the properties at time of creation. Subclasses should specify additional parameters in their own initializers.

Declared In

AKInnerGlowImageEffect.h