Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Document AKPatternImageEffect.
Browse files Browse the repository at this point in the history
  • Loading branch information
SlaunchaMan committed Mar 1, 2013
1 parent d12b612 commit 3afb01e
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions AmazeKit/AmazeKit/AKPatternImageEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,40 @@
#import "AKImageEffect.h"


/** The AKPatternImageEffect class repeats a single image as a pattern.
*/


// Constants
extern NSString * const kPatternImageHashKey;


@interface AKPatternImageEffect : AKImageEffect

@property (readonly) UIImage *patternImage;

/**-------------------------------------
* @name Creating a Pattern Image Effect
* -------------------------------------
*/

/** The designated initializer for a pattern image effect.
*
* @param alpha The value for the alpha property.
* @param blendMode The value for the blendMode property.
* @param patternImage The value for the patternImage property.
* @return An initialized image effect.
*/
- (id)initWithAlpha:(CGFloat)alpha
blendMode:(CGBlendMode)blendMode
patternImage:(UIImage *)patternImage;


/**----------------------------
* @name Customizing Appearance
* ----------------------------
*/

/** The image to draw as a pattern. This image will be tiled.
*/
@property (readonly) UIImage *patternImage;

@end

0 comments on commit 3afb01e

Please sign in to comment.