How can I get a UIBezierpath
from a UIImage
like this.
I do not need a full square path. I just want this path, as shown on the red border, from UIImage.
I went through link 1 and link 2 , but could not succeed.
I did the following code to get the 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 a UIBezierpath
that follows the shape of alphabets such as A, B .. etc.
Please tell me is it possible or not to get this type of path?
Thanks in advance.
source share