Center of rotation

Jul 19, 2015 at 2:35 AM
Edited Jul 19, 2015 at 2:36 AM
I would like to rotate an image at a certain point, but I don't have any option. There are 2 issues.
I want to rotate an image with mouse. So mouse could be there any place not ine middle of the picture. How this can be done?
What is the bounding rect for the new rotated image.

Any help will be very much appreciated.

Best regards
Agha Khan
Coordinator
Jul 20, 2015 at 9:13 AM
Check the RotateFree method. IT also has a boolean crop parameter.
Jul 20, 2015 at 3:14 PM
Dear Teichgraf:

Thanks for your reply.
I already checked, but there is no such functionally where I could place center of rotation.
I did use function RotateFree .

var modifiedImage = WriteableBitmapExtensions.RotateFree(all[3], 30, false);
 
writeableBmp.Blit(new Rect(0, 0, 1000, 1000), modifiedImage, new Rect(0, 0, 1000, 1000));
Unfortunately there no no option where I could mention center of rotation and always rotates around center of image. Also I have now I have no idea of bounding Rect, so I placed very large Rect(0,0,1000,1000) , which is not ideal either.
In documentation I didn't anywhere center of rotation.

Once again thanks for the email.


Best regards
Agha Khan