crop image to 4:3 aspect ratio c#
问题 I'm having a tough time wrapping my head around how to figure out the math for cropping any image that has a higher aspect ratio than 4:3 to 4:3. For example, I may have some images that are 16:9 that I I want resized and then cropped to 4:3. The resize bit I already have working, but it's maintaining the same aspect ratio. I know I need to use Graphics.DrawImage() But I'm not entirely sure what the parameters should be nor how I derive those parameters. Here's what I do know: var dimension =