Here’s a little function in C# to resize an image with proportional constraints. Just specific the max width and max height and this method will return a bitmap all sized up for you. I have this snipped in the form of a static Utilities class because that’s how I use it.
Understanding how a programming language works is a surefire way to be a better developer. Read more.