Inherits from TKFill : NSObject
Declared in TKImageFill.h

Overview

Represents an image brush.

Properties

image

An image to draw.

@property (nonatomic, strong, nullable) UIImage *image

Declared In

TKImageFill.h

resizingMode

Defines the resizing mode of the image.

@property (nonatomic, assign) TKImageFillResizingMode resizingMode

Discussion

The resizing modes are defined as follows:

typedef enum {
    TKImageFillResizingModeTile,        // The image is tiled (default).
    TKImageFillResizingModeStretch,     // The image is stretched.
    TKImageFillResizingModeNone,        // The image is shown as is.
} TKImageFillResizingMode;

Declared In

TKImageFill.h

Class Methods

imageFillWithImage:

Initializes with an image.

+ (instancetype __nonnull)imageFillWithImage:(UIImage *__nonnull)image

Parameters

image

The image to draw.

Declared In

TKImageFill.h

imageFillWithImage:cornerRadius:

Initializes with an image.

+ (instancetype __nonnull)imageFillWithImage:(UIImage *__nonnull)image cornerRadius:(CGFloat)cornerRadius

Parameters

image

The image to draw.

cornerRadius

The corner radius in points.

Declared In

TKImageFill.h

Instance Methods

initWithImage:

Initializes with an image.

- (instancetype __nonnull)initWithImage:(UIImage *__nonnull)image

Parameters

image

The image to draw.

Declared In

TKImageFill.h

initWithImage:cornerRadius:

Initializes with an image.

- (instancetype __nonnull)initWithImage:(UIImage *__nonnull)image cornerRadius:(CGFloat)cornerRadius

Parameters

image

The image to draw.

cornerRadius

The corner radius in points.

Declared In

TKImageFill.h