How can I get UIBezierpath
from UIImage
like this..
I do not want full square path, Just want that path as shown in red border from UIImage..
I had gone through Link 1 and Link 2 but can't got success..
I had done following code to get masking path..
CAShapeLayer *maskLayer = [CAShapeLayer layer];
maskLayer.frame = imgView.frame;
UIBezierPath *roundedPath = [UIBezierPath bezierPathWithRoundedRect:maskLayer.bounds byRoundingCorners:UIRectCornerAllCorners cornerRadii:CGSizeMake(50.f, 50.f)];
Basically I want to get UIBezierpath
that follows the shape of alphabets like A,B.. etc.
Please tell me is this possible or not to get this type of path??
Thanks in advance..