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

Overview

The AKInnerShadowImageEffect class creates a shadow on the inside of the image.

Tasks

Creating an Inner Shadow Image Effect

Customizing Appearance

Properties

color

The color of the shadow.

@property (readonly) UIColor *color

Declared In

AKInnerShadowImageEffect.h

offset

The offset of the shadow.

@property (readonly) CGSize offset

Declared In

AKInnerShadowImageEffect.h

radius

The radius of the shadow.

@property (readonly) CGFloat radius

Declared In

AKInnerShadowImageEffect.h

Instance Methods

initWithAlpha:blendMode:color:radius:offset:

The designated initializer for an inner shadow image effect.

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

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. This is not the offset, but how far from the offset to draw the shadow.

offset

The offset (from the origin) to start drawing the shadow.

Return Value

An initialized image effect.

Declared In

AKInnerShadowImageEffect.h