UIImage(ASDKAdditions) Category Reference

Declared in UIImage+ASConvenience.h

+ as_resizableRoundedImageWithCornerRadius:cornerColor:fillColor:

This generates a flat-color, rounded-corner resizeable image

+ (UIImage *)as_resizableRoundedImageWithCornerRadius:(CGFloat)cornerRadius cornerColor:(UIColor *)cornerColor fillColor:(UIColor *)fillColor

Parameters

cornerRadius

The radius of the rounded-corner

cornerColor

The fill color of the corners (For Alpha corners use clearColor)

fillColor

The fill color of the rounded-corner image

Declared In

UIImage+ASConvenience.h

+ as_resizableRoundedImageWithCornerRadius:cornerColor:fillColor:borderColor:borderWidth:

This generates a flat-color, rounded-corner resizeable image with a border

+ (UIImage *)as_resizableRoundedImageWithCornerRadius:(CGFloat)cornerRadius cornerColor:(UIColor *)cornerColor fillColor:(UIColor *)fillColor borderColor:(nullable UIColor *)borderColor borderWidth:(CGFloat)borderWidth

Parameters

cornerRadius

The radius of the rounded-corner

cornerColor

The fill color of the corners (For Alpha corners use clearColor)

fillColor

The fill color of the rounded-corner image

borderColor

The border color. Set to nil for no border.

borderWidth

The border width. Dummy value if borderColor = nil.

Declared In

UIImage+ASConvenience.h

+ as_resizableRoundedImageWithCornerRadius:cornerColor:fillColor:borderColor:borderWidth:roundedCorners:scale:

This generates a flat-color, rounded-corner resizeable image with a border

+ (UIImage *)as_resizableRoundedImageWithCornerRadius:(CGFloat)cornerRadius cornerColor:(UIColor *)cornerColor fillColor:(UIColor *)fillColor borderColor:(nullable UIColor *)borderColor borderWidth:(CGFloat)borderWidth roundedCorners:(UIRectCorner)roundedCorners scale:(CGFloat)scale

Parameters

cornerRadius

The radius of the rounded-corner

cornerColor

The fill color of the corners (For Alpha corners use clearColor)

fillColor

The fill color of the rounded-corner image

borderColor

The border color. Set to nil for no border.

borderWidth

The border width. Dummy value if borderColor = nil.

roundedCorners

Select individual or multiple corners to round. Set to UIRectCornerAllCorners to round all 4 corners.

scale

The number of pixels per point. Provide 0.0 to use the screen scale.

Declared In

UIImage+ASConvenience.h