himmelroman#15106
Hi,
I am trying to implement simple Rotate & Crop functionality.
I got everything working using the samples, but I can't seem to solve one issue.
When I rotate an image (using Bitmap.Transforms.Rotate),
there are actually two effects - the image is rotated and downsized to fit in the original square.
What I would like to happen instead - is that the image will get "cropped" on the edges
(or more precisely - the edges will be hidden, as if they are outside the original display border).
Just the effect that would happen if you put a printed photo on a table, look at it through a fixed frame and rotate the photo on the table. Parts of it should get outside the frame (Until it comes to 180 degrees and back at 360 degrees again).
Is there a way to implement this?
Thank you in advance,
Roman.
I am trying to implement simple Rotate & Crop functionality.
I got everything working using the samples, but I can't seem to solve one issue.
When I rotate an image (using Bitmap.Transforms.Rotate),
there are actually two effects - the image is rotated and downsized to fit in the original square.
What I would like to happen instead - is that the image will get "cropped" on the edges
(or more precisely - the edges will be hidden, as if they are outside the original display border).
Just the effect that would happen if you put a printed photo on a table, look at it through a fixed frame and rotate the photo on the table. Parts of it should get outside the frame (Until it comes to 180 degrees and back at 360 degrees again).
Is there a way to implement this?
Thank you in advance,
Roman.