Add image modification block to render template images w/ tint.

This commit is contained in:
andyscott
2015-02-03 12:54:41 -08:00
parent 6246f077fc
commit 4bd9ef2927
2 changed files with 29 additions and 0 deletions

View File

@@ -137,4 +137,16 @@ ASDISPLAYNODE_EXTERN_C_BEGIN
*/
asimagenode_modification_block_t ASImageNodeRoundBorderModificationBlock(CGFloat borderWidth, UIColor *borderColor);
/**
* @abstract Image modification block that applies a tint color à la UIImage configured with
* renderingMode set to UIImageRenderingModeAlwaysTemplate.
*
* @param tintColor The color to tint the image.
*
* @see <imageModificationBlock>
*
* @returns An ASImageNode image modification block.
*/
asimagenode_modification_block_t ASImageNodeTintColorModificationBlock(UIColor *color);
ASDISPLAYNODE_EXTERN_C_END