rotate image on canvas around its center . i tried some example from net but i am failed
if i am using bitmap.creatbitmap with matrix i am getting error
Please suggest me which is better
Thanks in advance
Aswan
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.
You can use a matrix to rotate. First you set the position (I’m using the coordinates of the bitmap’s centre). Then apply a rotation. Then draw using your matrix.
If you want your turning to be animated, then see my answer to “animating and rotating an image…”.