title: How do I correctly transform an image in WPF?
body: <p>I want to write program that functions something like PhotoShop.</p>
  
  <p>1.upload image</p>
  
  <p><a href="https://i.stack.imgur.com/Z2EwJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z2EwJ.png" alt="enter image description here"></a>
   2. Then I want to do skew transform, But when I do transform I have a problem, my picture goes beyond the edge of the workspace.<a href="https://i.stack.imgur.com/VD0th.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VD0th.png" alt="enter image description here"></a>
  How do I transform without this problem(I think I should create a new Image every time I do a transform).</p>
  
  <p>Then I crop, but crop makes the picture without transform. I think if I create a new image every time I do a transform, the problem will be fixed.</p>
  
  <p>How do I do this correctly?</p>
  
  <p>How do I correctly create this image in WPF? How to do transform and save an image? I am using(System.Drawing.Bitmap, System.Windows.Media.Imaging) Maybe, can someone show me experiences, code or useful material?</p>