Crop a diagonal area from an image in WPF
问题 I want to crop from an image using user-drawn rectangles on a canvas. The rectangles can be moved, re-sized, and rotated. When the user selects "Get Cropped Image", the area inside the rectangle should be saved in a second image location on the page, which I can do perfectly well, so long as the rectangle is not rotated. (Straight-forward use of CroppedBitmap.) However, when the rectangle is at an angle I do not know how to perform the crop. This is what I want to do (forgive my poor MS Paint