are there a way for rotate UIImage around external point using CGAffineTranformMAkeRotation?
tnx a lot!
are there a way for rotate UIImage around external point using CGAffineTranformMAkeRotation? tnx a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is a function that uses the same format as the CoreGraphics CGAffineTransform API format.
This works exactly how other “RotateAt()” APIs should work.
The operation represents the equivalent of the following specification: translate(pt.x, pt.y); rotate(angle); translate(-pt.x, -pt.y);
Just like with
CGAffineTransformMakeRotation(), angle is in radians, not degrees.