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

Overview

The AKMaskImageEffect masks the layers beneath it behind a mask image.

Tasks

Creating a Mask Image Effect

Customizing Appearance

  •   maskImage

    The image to use as a mask. The alpha channel of the image is used—opaque values show the underneath layers opaque, transparent values do not.

    property

Properties

maskImage

The image to use as a mask. The alpha channel of the image is used—opaque values show the underneath layers opaque, transparent values do not.

@property (readonly) UIImage *maskImage

Declared In

AKMaskImageEffect.h

Instance Methods

initWithAlpha:blendMode:maskImage:

The designated initializer for a mask image effect.

- (id)initWithAlpha:(CGFloat)alpha blendMode:(CGBlendMode)blendMode maskImage:(UIImage *)maskImage

Parameters

alpha

The value for the alpha property.

blendMode

The value for the blendMode property.

maskImage

The value for the maskImage property.

Return Value

An initialized image effect.

Declared In

AKMaskImageEffect.h