Open
Description
Currently, I found that the thumbnail image with FICImageFormatStyle8BitGrayscale are not clipped correctly. The default color one is FICImageFormatStyle32BitBGRA. However, the gray one is not rounded rect, as we hoped for.
Here is how the drawingBlockForImage looks like:
- (FICEntityImageDrawingBlock)drawingBlockForImage:(UIImage *)image withFormatName:(NSString *)formatName {
FICEntityImageDrawingBlock drawingBlock = ^(CGContextRef context, CGSize contextSize) {
CGRect contextBounds = CGRectZero;
contextBounds.size = contextSize;
CGContextClearRect(context, contextBounds);
// Clip to a rounded rect
CGPathRef path = _FICDCreateRoundedRectPath(contextBounds, contextSize.width/2);
CGContextAddPath(context, path);
CGContextClip(context);
UIGraphicsPushContext(context);
[image drawInRect:contextBounds];
UIGraphicsPopContext();
};
return drawingBlock;
}
Metadata
Metadata
Assignees
Labels
No labels

Activity
wongzigii commentedon Aug 1, 2015
Please help. If you need any further information, contact me without hesitation.
luoyibu commentedon Aug 13, 2015
try CGContextEOClip