Declared in UIImage+JSMessagesView.h

Tasks

Instance Methods

js_imageAsCircle:withDiamter:borderColor:borderWidth:shadowOffSet:

- (UIImage *)js_imageAsCircle:(BOOL)clipToCircle withDiamter:(CGFloat)diameter borderColor:(UIColor *)borderColor borderWidth:(CGFloat)borderWidth shadowOffSet:(CGSize)shadowOffset
Discussion

Creates and returns a new image object with the specified attributes.

Warning: This method crops a copy of the receiver into a perfect square centered on the center point of the image before applying the other attributes.

Parameters

clipToCircle

A boolean value indicating whether or not the returned image should be cropped to a circle. Pass YES to crop the returned image to a circle, and NO to crop as a square.

diameter

A floating point value indicating the diamater of the returned image.

borderColor

The color with which to stroke the returned image.

borderWidth

The width of the border of the returned image.

shadowOffset

The values for the shadow offset of the returned image.

Return Value

A new image object with the specified attributes.

Declared In

UIImage+JSMessagesView.h

js_imageFlippedHorizontal

- (UIImage *)js_imageFlippedHorizontal
Discussion

Creates and returns an image object that is a copy of the receiver and flipped horizontally.

Return Value

A new image object.

Declared In

UIImage+JSMessagesView.h

js_imageMaskWithColor:

- (UIImage *)js_imageMaskWithColor:(UIColor *)maskColor
Discussion

Creates and returns a new image object that is masked with the specified mask color.

Parameters

maskColor

The color value for the mask.

Return Value

A new image object masked with the specified color.

Declared In

UIImage+JSMessagesView.h

js_stretchableImageWithCapInsets:

- (UIImage *)js_stretchableImageWithCapInsets:(UIEdgeInsets)capInsets
Discussion

Creates and returns a new stretchable image object with the specified cap insets.

Parameters

capInsets

The values to use for the cap insets.

Return Value

A new image object with the specified cap insets and mode UIImageResizingModeStretch.

Declared In

UIImage+JSMessagesView.h