Search code examples
c#imageresizeclonecrop

Crop image different format


I want to ask you for help in solving a problem.

I crop the picture with Clone. But there is one detail that affects the operation of the module.

In more details: I have a picture resolution of 1600x900. I need to get a thumb 400x300. Picture 1 is of type 16:9 and the Picture 2 4:3 ratio.

In my version of the solution of the second picture is cut from first. I need the first image smaller, and then cut off. So they look proportionate.


Solution

  • You have to resize your photo at 533x300 and then crop it to 400x300. This will preserve your image ratio.